Skip to content
Prev 69207 / 398506 Next

body of non-visible function

On Thu, 5 May 2005, Liaw, Andy wrote:

            
Only centred.  Had this been princomp(data.matrix, cor=TRUE, scores=TRUE)
they would have been scaled.  It is better to follow my hint of looking at
predict.princomp:

     object <- princomp(data.matrix)
     scale(data.matrix, object$center, object$scale) %*% object$loadings

BTW, data.matrix is an R function, so not a good choice of name.