Hello, I have a question regarding the candisc package. My data are:
species three five 1 2.95 6.63 1 2.53 7.79 1 3.57 5.65 1 3.16 5.47 2 2.58 4.46 2 2.16 6.22 2 3.27 3.52 I put these in a table and then a linear model >newdata <- lm(cbind(three, five) ~ species, data=rawdata) and then do a candisc on them >candata<-candisc(newdata) Here are my scores; >candata$scores species Can1 1 1 -2.3769280 2 1 -2.7049437 3 1 -3.4748309 4 1 -0.9599825 5 2 4.2293774 6 2 2.6052193 7 2 2.6820884 and here are my coefficients > candata$coeffs.raw Can1 three -5.185380 five -2.160237 > candata$coeffs.std Can1 three -2.530843 five -2.586620 My question is, what is the precise equation that gives the candata$scores? Thanks [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.