This function creates takes the inverse of the asreml Ainverse function (ginv element) and creates the additive relationship matrix to use it as a covariance matrix for a random effect. Other packages that allows you to obtain an additive relationship matrix from a pedigree is the `pedigreemm` package.
Usage
pedtoK(x, type="asreml")
Arguments
x
ginv element, output from the Ainverse function.
type
program used to obtain the pedigree. Currently only asreml.
Value
K
pedigree transformed in a relationship matrix.
Kinv
inverse of the pedigree transformed in a relationship matrix.
References
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744