Skip to content
Prev 58448 / 398502 Next

Princomp(), prcomp() and loadings()

On Wed, 3 Nov 2004, F.Tusell wrote:

            
That is explained on the help page!  E.g.

     Note that the default calculation uses divisor 'N' for the
     covariance matrix.

and there is even an example:

     princomp(USArrests, cor = TRUE) # =^= prcomp(USArrests, scale=TRUE)
     ## Similar, but different:
     ## The standard deviations differ by a factor of sqrt(49/50)
Hmmm.  Varimax rotation of PCA (not factor analysis) is not supported in
base R, so this is not surprising.  Please do as the posting guide asks,
and read the help page (even its title!) before posting.
The best clue is that the help pages are a very useful resource, but need 
to be read as carefully as they were written.