This function creates a table of random effects for a multi trait model to be used internally for the mmer and mmer2 function to map the variance components.
Usage
vctable(ts,nz,nr)
Arguments
ts
number of traits.
nz
number of random effects.
nr
number of residual structures.
Value
all3
table of variance-covariance components for each trait.
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