PCAtools icon indicating copy to clipboard operation
PCAtools copied to clipboard

Obtaining the eigenvalues

Open luizalmeida93 opened this issue 2 years ago • 0 comments

First of all, I'm sorry if this question makes no sense for this package. I am back to studying PCA, and I have a lot of (potentially disconnected) information in my head.

I performed a PCA using prcomp() from base R. In one of the tutorials I read online, the number of PCs was decided based on the eigenvalues. When using prcomp(), I can simply use the get_eigenvalue() from the "factoextra" package, then I have access to the eigenvalues, variance.percent, and cumulative.variance.percent.

In the PCAtools package, there are other functions and plots for defining the number of PCs, which is super awesome. However, I still wanted to take a look at the eigenvalues. The get_eigenvalue() from factoextra doesn't seem to work. Is there any alternative? I tried looking the the pca object but couldn't see any number matching prcomp() values.

Best, Luiz

luizalmeida93 avatar Sep 15 '23 22:09 luizalmeida93