문제

How to downproject with PCA in R?

When I use princomp function on my data it creates as many principal components as there are dimensions in the original data. But how can I down-project, let's say if I have 10 dimensional data and I want to downproject to 2 dimensions?

도움이 되었습니까?

해결책

if you mean doing PCA and keeping just a few of the components (dimensions) then one way is to use principal in package psych. (Using the argument nfactors)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top