Hi,all
I got the .eigenval and .eigenvec file with the --pca
code in plink1.9
Is there any one can tell me what the data of the .eigenval stand for ,is it the variance?or standard deviation?
Also, is there an option to output the variance explained by each PC? Thank you.
And is there any rule on how to choose the eigenvecs as covariates according to the eigenval file?
Thank you for your explanation, it is very helpful. but still one thing confusing me. when I did the PCA by R, the total variances usually equal to the number of PCs, such as the example as the following:
It gives Standard deviation (sd) instead of variance, so you have to square sd to get the variance.
but my .eigenval file of the plink is as following ,which not as the rule above (the total variance not equal to the number of PCs, 20), would you help me explain that? Thank you
How many PCs did you request and what's the size of your covariance matrix? My guess is that you have n>20 and you only got the first 20 eigenvalues corresponding to the first 20 PCs. In PCA, the data is often standardized first. In that case, the sum of the eigenvalues equals the number of variables since all variables have a variance of 1.