[R] PCA - scores

2011-03-03 Thread Shari Clare
es for the Principal Components the way "princomp" does. My question is: Can you get an output of scores using "principal" OR, is there a way to limit the number of factors that are included when you use "princomp"? Thanks, Shari Clare PhD Candidate Departmen

Re: [R] PCA - scores

2011-03-04 Thread Shari Clare
require(psych) >> require(GPArotation) >> >> dat <- principal(mtcars[, c("mpg", "hp", "wt")], nfactors = 1, >> rotate = "oblimin", scores = TRUE) >> >> dat$scores >> ## >> >> Cheer