[R] weird results w/ prcomp-princomp

From: Alessandro Bigi <abigi_at_agrsci.unibo.it>
Date: Fri 08 Apr 2005 - 19:12:26 EST


I am doing a Principal Component Analaysis (PCA) on a 44x19 matrix. with
> princomp(x,cor=TRUE,scores=TRUE)

and
> prcomp(x,scale=TRUE,center=TRUE)

The resulted eigenv. and rotated matrix are the same (as expected), however the sum of eigenvalues is lower than 19 (number of variables).

With a commercial stat software it worked correctly, with the same dataset. Am I doing something wrong?
Thanks
Alex

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.





-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Apr 08 19:18:42 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:05 EST