Domanda

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?

È stato utile?

Soluzione

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)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top