[R] multiv{pca} question
Scott Robbins Loarie
loarie at stanford.edu
Mon Jun 14 07:41:03 CEST 2004
Dear R users,
I am having trouble using the pca function in the multiv library.
I am trying to generate the values found in $rproj by using $evecs to
calculate linear combinations of my input data. However, I have been not
been able to correctly calculate the $rproj values.
Using the following standard sample data, why does iris%*%pcprim$evecs[,]
not equal pcprim$rproj?
data(iris)
iris<-as.matrix(iris[,1:4])
pcprim<-pca(iris)
Many thanks,
Scott
More information about the R-help
mailing list