makeDsim(pedigree, N, invertD = FALSE, calcSE = FALSE)
Ovaskainen et al. (2008) indicated that the method of calculating the D matrix (see makeD
) is only an approximation. They proposed a simulation method that is implemented here. This should be more appropriate when inbreeding occurs in the pedigree.
The value, listDsim
will list both the approximate values (returned from makeD
) as well as the simulated values. If calcSE
is TRUE, these values will be listed in listDsim
.
makeD
simDinvMat <- makeDsim(Mrode9, N = 1000, invertD = FALSE, calcSE = TRUE)$listDsim
Run the code above in your browser using DataLab