With prcomp()
function, I have estimated percent variance explained
prcomp(env, scale=TRUE)
The second column of summary(pca)
shows these values for all PCs:
PC1 PC2 PC3 PC4 PC5 PC6 PC7
Standard deviation 7.3712 5.8731 2.04668 1.42385 1.13276 0.79209 0.74043
Proportion of Variance 0.5488 0.3484 0.04231 0.02048 0.01296 0.00634 0.00554
Cumulative Proportion 0.5488 0.8972 0.93956 0.96004 0.97300 0.97933 0.98487
Now I want to find what the Eigenvalues for each PC are:
pca$sdev^2
[1] 5.433409e+01 3.449329e+01 4.188887e+00 2.027337e+00 1.283144e+00
[6] 6.274083e-01 5.482343e-01
But these values appear to be simply an alternate representation of the PVE itself. So what am I doing wrong here?