# \donttest{
data(Thorndike00)
## Canonical Correlation Analysis
## Note. We swap the X_vars and Y_vars because cancorr() expects that
## X_vars cannot have more variables than Y_vars.
cancorr(X_vars=c("y1", "y2", "y3", "y4", "y5"),
Y_vars=c("x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8"),
Cov=Thorndike00$data, numObs=Thorndike00$n)
# }
Run the code above in your browser using DataLab