Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- attr1 attr2 ...
- PC1 PC2 PC3 ...
- ... ... ...
- getS3method("predict", "prcomp")
- pca<-prcomp(data)
- scale(newdata,with=FALSE]),pca$center,pca$scale)%*%pca$rotation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement