princomp(x, data=NULL, covlist=NULL, scores=T, cor=F, na.action=na.fail, subset=T)
Principal component analysis is often used as a data reduction technique, sometimes in conjunction with regression. If the variables are not all in the same units, it is advisable to scale the columns of the input before performing the principal component analysis since a variable with large variance relative to the others will dominate the first principal component.
Dillon, W. R. and Goldstein, M. (1984). Multivariate Analysis, Methods and Applications. Wiley, New York.
Johnson, R. A. and Wichern, D. W. (1982). Applied Multivariate Statistical Analysis. Prentice-Hall, Englewood Cliffs, New Jersey.
Mardia, K. V., Kent, J. T. and Bibby, J. M. (1979). Multivariate Analysis. Academic Press, London.
princomp(prim4)# use a robust estimate of the covariances and scale the variables prim4.pcr <- princomp(prim4, covlist=cov.mve(prim4), cor=T)
screeplot(prim4.pcr) plot(loadings(prim4.pcr)) print(loadings(prim4.pcr), cutoff=.5)
princomp(~pre.mean + post.mean + pre.dev + post.dev, data=wafer)