## continue the RLGH example from ?join
example(join)
## fit the MAT model using the squared chord distance measure
swap.mat <- mat(swapdiat, swappH, method = "SQchord")
## bootstrap training set
swap.boot <- bootstrap(swap.mat, k = 10, n.boot = 100)
## residuals
resid(swap.boot) # uses abbreviated form
Run the code above in your browser using DataLab