[R] PCA Using prcomp()
S Ellison
S.Ellison at LGCGroup.com
Mon Aug 15 13:37:17 CEST 2011
> -----Original Message-----
> christopher stratton
> Sent: 14 August 2011 22:22
> Subject: [R] PCA Using prcomp()
>
> From the results
> generated by prcomp(), is there a way to print a matrix
> showing the contributions of the original variables to each
> PC?
Sounds like you're looking for the variable loadings matrix, stored in the prcomp object as 'rotation' according to the help page.
Extending the example from the help page:
usar.pca <- prcomp(USArrests, scale = TRUE)
usar.pca$rotation
S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
More information about the R-help
mailing list