I need to calculate this: what portion of the total information is maintained by the first two principal components in the two cases?
I have calculated PCA using this function, but I got stuck while trying to calculate the proportion of two first principal components. Can you kindly help me with this?
PCA = prcomp(swiss, center = TRUE, scale = TRUE)
PCA