cov.function {PCFAM} | R Documentation |
Obtain a sample covariance matrix
cov.function(data.matrix)
data.matrix |
Input mxn data matrix |
return the nxn sample covariance matrix
Yi-Hui Zhou
Computation of ancestry scores with mixed families and unrelated individuals. arXiv:1606.08416.
X <- matrix(rbinom(1000*20,2,0.4),1000,20)
cov.X=cov.function(X)