kinship2grm | R Documentation |
Converts a kinship matrix to a Genetic Relation Matrix (GRM)
kinship2grm(x)
x |
a square matrix containing kinship coefficients |
for off-diagonal elements, GRM=2 \times x_{ij}; for diagonal elements, GRM=1+ x_{ii}
a GRM matrix
Jerome Goudet jerome.goudet@unil.ch
## Not run: dos<-matrix(sample(0:2,replace=TRUE,size=1000),nrow=10) #dosage matrix for 10 inds at 100 loci ks<-beta.dosage(dos) # kinship matrix kinship2grm(ks) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.