calcG | R Documentation |
Function to calculate a relationship matrix from marker data. Option
to return the inverse of matrix. Inverse calculated using
Matrix
package.
calcG(M, data = NULL,solve = FALSE)
M |
Matrix of marker genotypes, usually the count of one of the two SNP alleles at each markers (0, 1, or 2). |
data |
Optional logical vector which can tell of which individuals we have phenotypes. |
solve |
Logic, if TRUE then function returns the inverse of the relationship matrix. |
Matrix of class dgeMatrix
.
SamplePedigree
, gblup
,
makeAinv
,blup
example(gblup) G <- calcG(M) Ginv <- calcG(M,solve = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.