I have a problem with the pca
in R, probably a simple one:
I have 10 Vectors a,b,c,d,e,f,g,h,i,j and bind them with cbind
.
With the Result I perform a pca
, using prcomp
. I get the scores all right and also I get the principal components in descending order.
Only: how on earth do I know which of the components a
to j
is the first, which the second and so on?
Probably really a beginner's question - still cannot solve it and would appreciate some help.
prcomp
tells you what components its return value has; these should help you to figure out which original dimension contributes to which principal component. – Lars Kotthoffprcomp(...)$rotation[,"PC1"]
shows you how much each of your original dimensions contributes to the first component. So it is not a one-to-one map like you thought but more like a many-to-many mapping. – flodel