varComp | R Documentation |
varComp function will estimate variance components
varComp(K, Y, X)
K |
is obtained from the Kinship function |
Y |
is the phenotype matrix, individual x phenotypes |
X |
is the SNP matrix, individual x SNPs |
Variance components Vg: genetic factor Ve: environment factor
X <- as.matrix(read.table("./testData/X_rightdim.txt"))
Y <- as.matrix(read.table("./testData/Y_rightdim.txt"))
K <- Kinship(X)
VC <- varComp(K, Y, X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.