Hi Paul,

>> how do you view how much each component contributes to variance in the
>> dataset ...

It helps to read the help:

?princomp
?prcomp

Contributions to inertia or variance are reported as standard deviations
(princomp.obj$sdev). So square these values to get the variance accounted
for by each component. For the rest, see loadings sub Value in the help
file.

Regards, Mark.


pgseye wrote:
> 
> After doing a PCA using princomp, how do you view how much each component
> contributes to variance in the dataset. I'm still quite new to the theory
> of PCA - I have a little idea about eigenvectors and eigenvalues (these
> determine the variance explained?). Are the eigenvalues related to
> loadings in R?
> 
> Thanks,
> 
> Paul
> 

-- 
View this message in context: 
http://www.nabble.com/PCA-and---variance-explained-tp19388970p19391466.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to