The following are the datasets
mm <- read.csv("https://stats.idre.ucla.edu/stat/data/mmreg.csv")
colnames(mm) <- c("Control", "Concept", "Motivation", "Read", "Write", "Math",
"Science", "Sex")
psych <- mm[, 1:3] # dataset A
acad <- mm[, 4:8] # dataset B
For these datasets psych and acad,I wanted to do the canonical correlation analysis and obtained the canonical correlation coefficients and canonical loadings as follows:
require(CCA)
cc1 <- cc(psych, acad)
I would like to know if there is a package or function in R to automatically compute the significance of the canonical dimensions/variates.And also something to test the overall model fit for canonical correlation analysis and summarize as follows: