Try: res <- princomp(X, scores = TRUE) res$scores
Cheers, Simon. Simon Blomberg Depression & Anxiety Consumer Research Unit Centre for Mental Health Research, Australian National University [EMAIL PROTECTED] +61 (2) 6125 3379 -----Original Message----- From: kenneth fortino [mailto:[EMAIL PROTECTED]] Sent: Thursday, 30 January 2003 2:49 PM To: [EMAIL PROTECTED] Subject: [R] Principal comp. scores in R Hello, I am trying to run a PCA in R and I cannot get the PC scores for each of the values. Using pcX <- princomp(X) then loadings(pcX) I can get a listing of the eigenvectors but not the actual PC scores for each value in the dataset. I greatly appreciate any help anyone can offer Thanks Ken ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
