makeDomEpi(pedigree, output = c("AD", "DD", "both"), parallel = FALSE, Dinverse=FALSE)output and Dinverse options passed to the function will determine which of the following are not NULL objects within the list:
Because of the computational demands of constructing the D matrix (see makeD), this function allows for the inverses that are derived from the D matrix (i.e., D-inverse, AD-inverse, and DD-inverse)to be constructed at the same time. This way, the D matrix will only have to be constructed once for use in the three seperate genetic relatedness inverse matrices that depend upon it. However, using the output and Dinverse options in different combinations will ensure that only the desired matrix inverses are constructed.
If parallel = TRUE then the pacakge multicore must be loaded.
Both the AD and DD matrix are computed from the Hadamard product of the respective matrices (see also, makeAA).
makeA, makeD, makeAABoutput <- makeDomEpi(Mrode9, output = "b", parallel = FALSE, Dinverse = FALSE)
str(Boutput)
DADoutput <- makeDomEpi(Mrode9, output = "AD", parallel = FALSE, Dinverse = TRUE)
str(DADoutput)Run the code above in your browser using DataLab