Skip to content
Prev 174908 / 398506 Next

pca vs. pfa: dimension reduction

On 03/25/09 19:06, soeren.vogel at eawag.ch wrote:
Possibly what you want is the first principal component, which the
weighted sum that accounts for the most variance of the three
variables.  It does essentially what you say in your first paragraph.
So you want something like

p1 <- princomp(cbind(X1,X2,X3),scores=TRUE)
p1$scores[,1]

The trouble with factanal is that it does a rotation, and the default
is varimax.  The first factor will usually not be the same as the
first principal component (I think).  Perhaps there is another
rotation option that will give you this, but why bother even to look?
(I didn't, obviously.)

Jon