Using the pcaMethods
package in R I have run PCA on a data set of ~500 subjects with ~300 variables each. There are some missing values so I am employing the NIPALS algorithm rather than standard SVD based method. I am interested in the first two or three components as they seemingly explain >85% of the variation in the data.
I would like to see the effect of varimax and possibly other orthogonal rotations on the three PCs. If I take the unit scaled loadings (i.e. eigenvectors) from the pcaRes
object that is output by pcaMethods::pca
and then multiply by the squared standard deviation (i.e. eigenvalue) for each respective component I believe that I should recover the true PCA loading matrix?
This matrix is then submitted to the varimax
function. My query is how to calculate the percentage variance explained by the new rotated components? I can determine the sum of squares for each column of the rotated loadings but what is the denominator to convert these to percentages? Presumably what I need is the 'total variance' but this is not given in the output of the original PCA, as far as I can find.