[R] weird results w/ prcomp-princomp

Alessandro Bigi abigi at agrsci.unibo.it
Fri Apr 8 11:12:26 CEST 2005


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.




More information about the R-help mailing list