Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't print full pca #8

Closed
nspyrison opened this issue Feb 24, 2021 · 1 comment
Closed

Can't print full pca #8

nspyrison opened this issue Feb 24, 2021 · 1 comment

Comments

@nspyrison
Copy link

I can't return the last dim of the pca, p-1 seems to work.

  m <- as.matrix(mtcars)
  Rdimtools::do.pca(m, ndim = ncol(m))
#> Error in dt_pca(X, myndim, myprep, mycor): * do.pca : 'ndim' should be in [1,ncol(X)).

Created on 2021-02-24 by the reprex package (v0.3.0)

@kisungyou
Copy link
Owner

Hi @nspyrison. When you apply PCA with full dimension as of your ncol(m), this is simply whitening. In the spirit of reducing dimensionality of the data, I made a common imperative to accept that ndim should be smaller than the number of variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants