makeDsim(pedigree, N, parallel = FALSE, ncores = getOption("cores"),
invertD = FALSE, calcSE = FALSE, returnA = FALSE)
If parallel
= TRUE then the pacakge multicore
must be loaded.
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, especially 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, parallel = FALSE, invertD = FALSE, calcSE = TRUE)$listDsim
Run the code above in your browser using DataLab