Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. attr1 attr2 ...
  2.  
  3. PC1 PC2 PC3 ...
  4. ... ... ...
  5.  
  6. getS3method("predict", "prcomp")
  7.  
  8. pca<-prcomp(data)
  9. scale(newdata,with=FALSE]),pca$center,pca$scale)%*%pca$rotation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement