[R] princomp() output loadings component missing
Fix Ace
acefix at rocketmail.com
Sun Jan 29 10:31:54 CET 2017
Hello, there,
I did a test run for this princomp() function using USArrests data. The R document says that the output loadings contain the eigenvector matrix. When I looked at this matrix, I found that a missing item for Comp.4
> p3=princomp(USArrests, cor=TRUE )> p3$loadings
Loadings: Comp.1 Comp.2 Comp.3 Comp.4Murder -0.536 0.418 -0.341 0.649Assault -0.583 0.188 -0.268 -0.743UrbanPop -0.278 -0.873 -0.378 0.134Rape -0.543 -0.167 0.818
Comp.1 Comp.2 Comp.3 Comp.4SS loadings 1.00 1.00 1.00 1.00Proportion Var 0.25 0.25 0.25 0.25Cumulative Var 0.25 0.50 0.75 1.00
How should I explain this?
Thanks.
Ace
[[alternative HTML version deleted]]
More information about the R-help
mailing list