## continue the RLGH and SWAP example from ?join
example(join)
## fit the MAT model using the squared chord distance measure
swap.mat <- mat(swapdiat, swappH, method = "SQchord")
swap.mat
## the fitted values:
fitted(swap.mat)
## the fitted values for a MAT model
## with 10 analogues
fitted(swap.mat, k = 10)
Run the code above in your browser using DataLab