| cov.function {PCFAM} | R Documentation | 
Sample covariance calculator
Description
Obtain a sample covariance matrix
Usage
cov.function(data.matrix)
Arguments
| data.matrix | Input mxn data matrix | 
Value
return the nxn sample covariance matrix
Author(s)
Yi-Hui Zhou
References
Computation of ancestry scores with mixed families and unrelated individuals. arXiv:1606.08416.
Examples
X <- matrix(rbinom(1000*20,2,0.4),1000,20)
cov.X=cov.function(X)
[Package PCFAM version 1.0 Index]