Correspondence site: http://www.respond2articles.com/MEE/
APPLICATION
nadiv : an R package to create relatedness matrices for estimating nonadditive genetic variances in animal models
Article first published online: 11 MAY 2012
DOI: 10.1111/j.2041210X.2012.00213.x
© 2012 The Author. Methods in Ecology and Evolution © 2012 British Ecological Society
Additional Information
How to Cite
Wolak, M. E. (2012), nadiv : an R package to create relatedness matrices for estimating nonadditive genetic variances in animal models. Methods in Ecology and Evolution, 3: 792–796. doi: 10.1111/j.2041210X.2012.00213.x
Publication History
 Issue published online: 5 OCT 2012
 Article first published online: 11 MAY 2012
 Received 29 November 2011; accepted 2 April 2012 Handling Editor: Thomas Hansen
Keywords:
 dominance;
 epistasis;
 profile likelihood;
 quantitative genetics
Summary
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
1. The NonAdditive InVerses (nadiv) R software package contains functions to create and use nonadditive genetic relationship matrices in the animal model of quantitative genetics.
2. This study discusses the concepts relevant to nonadditive genetic effects and introduces the package.
3. nadiv includes functions to create the inverse of the dominance and epistatic relatedness matrices from a pedigree, which are required for estimating these genetic variances in an animal model. The study focuses on three widely used software programs in ecology and in evolutionary biology (ASReml, MCMCglmm and WOMBAT) and how nadiv can be used in conjunction with each. Simple tutorials are provided in the Supporting Information.
Introduction
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
A major advance for the study of quantitative trait evolution in wild populations was precipitated by the adoption of the ‘animal model’, a mixed effects model with a long and proven history in the animal breeding sciences (Henderson 1984; Lynch & Walsh 1998; Kruuk 2004). Using the similarity among relatives to elucidate the underlying genetic basis of phenotypic variation at the population level, the method (1) enables researchers to control (or study in and of themselves) confounding factors because of environmental or other nonheritable sources of similarity between relatives, (2) simultaneously utilizes additional relationships beyond parentoffspring or half and full siblings in the estimation of genetic parameters, thereby increasing the types of populations and organisms able to be studied and (3) is unbiased to selection within a population (Lynch & Walsh 1998; Kruuk 2004). Response variables in animal models may be univariate, multivariate, Gaussian or nonGaussian. Further, solutions to the animal model may be obtained using Likelihood or Bayesian approaches (further information in the Supporting Information Relatedness matrices in the animal model section and detailed descriptions of the animal model can be found in Lynch & Walsh 1998; Sorensen & Gianola, 2002; Kruuk 2004; Mrode, 2005).
The phenotypic variance of a quantitative trait can be broken down into additive genetic, nonadditive genetic and environmental sources of variation. The nonadditive genetic variance can be further subdivided into dominance and epistatic variances. The additive, dominance and epistatic genetic variances are proportional to the probability that individuals share alleles identical by descent at the same locus, for both alleles at the same locus, or for alleles at different loci, respectively. If one knows all the relationships in a population (i.e. the pedigree) then the above genetic variances can be estimated in an animal model.
Nonadditive genetic variances are seldom, if ever, estimated in ecological and evolutionary analyses (but see, Crnokrak & Roff 1995; Waldmann 2001), although the fields of animal and plant breeding have been estimating these genetic variances for over two decades (e.g. Hoeschele 1991; Tempelman & Burnside 1991). This could be, in part, because nonadditive genetic effects are assumed to be of little importance in predicting the evolutionary trajectory of moderately sized wild populations (Fisher 1958). Also, studies of wild organisms typically have low numbers of individuals in a population, especially compared to the millions often handled in animal breeding. This is problematic, because datasets with too few individuals preclude the inclusion of too many random effects in an animal model (Kruuk 2004) and have been shown to be problematic for the estimation of dominance variance (Misztal 1997). However, if dominance genetic effects are present, but not included in an animal model, they can potentially bias the prediction of the additive genetic effects as well as the estimate of additive genetic variance (Lynch & Walsh 1998; Ovaskainen, Cano & Merilä 2008; Waldmann et al. 2008; but see Misztal, Lawlor & Fernando 1997). Additionally, nonadditive effects are of central interest to a number of evolutionary hypotheses, for example: dominance and epistasis are expected to contribute substantially to variation in fitness (Wright 1929; Haldane 1932; Fisher 1958; Crnokrak & Roff 1995; Merilä & Sheldon 1999); nonadditive variance may determine the extent to which additive genetic variance increases after bottlenecks (Cockerham & Tachida 1988; Goodnight 1988; Willis & Orr 1993; Barton & Turelli 2004); epistasis can shape additive genetic effects and variances during processes such as mutation and selection (Gavrilets 1993; Hermisson, Hansen & Wagner 2003; Carter, Hermisson & Hansen 2005) which has consequences for the evolution of sex and recombination (Charlesworth 1990); epistasis plays an integral part in speciation through the evolution of DobzhanskyMuller incompatibilities (Crow & Kimura 1970; Orr 1995; Welch 2004); the sign of genetic correlations between fitnessrelated traits may depend on the amount of dominance variance (Curtsinger, Service & Prout 1994; Roff 1997; Merilä & Sheldon 1999); dominance potentially causes inbreeding depression or heterosis (Roff 1997) especially in small populations of conservation concern (Waldmann et al. 2008); and sexlinked dominance effects may play a role in the evolution of sexually dimorphic traits (Fairbairn & Roff 2006).
Aside from being unable to obtain meaningful estimates of nonadditive variances as a result of the overall size of a population (see “Sampling covariances and confidence intervals” below), the next challenge to including dominance and epistasis in animal models is constructing the nonadditive genetic relationship matrices (i.e. dominance matrix D and the three digenic epistatic matrices: additive by additive AA, additive by dominance AD and the dominance by dominance DD– where the additive genetic relationship matrix is represented by A and boldfaced, uppercase letters indicate a matrix). A further challenge is to obtain the inverses of these matrices, which is what is required to solve the system of equations in the animal model. Although the process of constructing the necessary matrix inverses has been worked out (e.g. Hoeschele & VanRaden 1991), only the creation of the additive inverse matrix has been incorporated into software used by most ecologists and evolutionary biologists: ASReml (Gilmour et al. 2009), MCMCglmm (Hadfield 2010) and WOMBAT (Meyer 2007). This study gives an overview of the software package nadiv (NonAdditive InVerses), implemented in the widely used statistical program R (R Development Core Team, 2011), which can be used to construct dominance and epistatic genetic relatedness matrices and their inverses. The inverses can subsequently be used in a variety of animal model software programs for univariate or multivariate analyses of quantitative traits. Below, examples briefly demonstrate the main functions using nadiv’s simulated data set warcolak.
Dominance relatedness matrix construction: makeD()
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
The relatedness in dominance genetic effects between individuals i and j, or coefficient of fraternity (Δ_{ij}), can be approximated by:
 ((eqn 1))
(pp. 140–141 in Lynch & Walsh 1998) where k and l represent the dam and sire of i, m and n the dam and sire of j, and θ is the additive genetic relatedness between individuals noted in the subscripts (elements in A). For a list of coefficients of fraternity between common types of relatives, I refer the reader to Lynch & Walsh (1998, table 24·1 on p. 721) or tables 4 and 5 from Fairbairn & Roff (2006). Equation 1 assumes no inbreeding and ignores dominance connections through grandparents, both for the sake of computational tractability (Ovaskainen, Cano & Merilä 2008). All pairwise Δ_{ij} in a population can be approximated using the makeD() function of nadiv, assuming no inbreeding. Accounting for the presence of inbreeding in the relatedness matrix adds a great deal of complexity to the estimation of dominance in an animal model (Smith & MäkiTanila 1990). Despite the potential for inbreeding to alter the estimates of Δ_{ij}, de Boer & van Arendonk (1992) showed an unbiased impact on the estimates of random effects in an animal model when inbreeding is moderately low and included as a fixed effect in the model.
Similar to algorithms that construct the additive genetic relatedness matrix (or its inverse), makeD() requires a pedigree as the main input. The pedigree must contain three columns, ordered ID, Dam, Sire, and the rows are ordered such that all parents occur in the ID column before their offspring (if not, see fixPedigree() in pedantics; Morrissey & Wilson 2010). All unknown parents (e.g. the base population) should be indicated with ‘NA’, ‘0’ or ‘*’:
Id  dam  sire 
1  NA  NA 
2  NA  NA 
3  2  1 
4  NA  1 
The output of makeD() is a list of objects, from which the inverse of the dominance relatedness matrix can be extracted in two forms, depending upon the program in which it is intended to be used. First, the output Dinv is the inverse of the sparse matrix D and can be included in an animal model using MCMCglmm, as demonstrated below (see the MCMCglmm tutorial in the Supporting Information for more details):

> warcolak.ped < warcolak[, c(1:3)]

> Dinv < makeD(warcolak.ped)$Dinv

> warcolak$IDD < warcolak$ID

> model.MCMC < MCMCglmm(phenotype ∼ 1,

+ random = ∼ID + IDD, data = warcolak,

+ ginverse = list(ID = Ainv, IDD = Dinv)
The object listDinv is the second form by which the inverse of the dominance relatedness matrix is returned from makeD(). It is formatted so as to facilitate inclusion in either ASReml or the ASRemlR package. This object is in the form of ASReml’s general inverse list (also referred to as a ginverse or giv; Gilmour et al. 2009), which contains the nonzero elements of the lower triangle of a sparse matrix, in row order. This can be used to include dominance as a random effect in the asreml() function in R (more details in the Supporting Information):

> ginvD < makeD(warcolak.ped)$listDinv

> model.asr < asreml(phenotype ∼ 1,

+ random = ∼ped(ID) + giv(IDD), data = warcolak,

+ ginverse = list(ID = ginvA, IDD = ginvD))
The listDinv object can also be written to a text file for inclusion in the analyses using the standalone ASReml program (Supporting Information). Further, this format is very similar to what WOMBAT requires; however, the first two columns must instead be ordered ‘column’ and then ‘row’ (the opposite order of listDinv) and the log determinant of D must also be provided. The first two columns of the list can easily be switched in R before saving the inverse to a file. The log determinant is returned as the object logDet in makeD() (Supporting Information).
Dominance relatedness matrix construction: makeDsim()
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
Ovaskainen, Cano & Merilä (2008) elegantly explain how eqn 1 yields an approximation of Δ_{ij}, and demonstrate a more accurate method, especially for complex pedigrees, to obtain estimates of D through iteration. Briefly, their method explicitly traces alleles through a pedigree, thereby incorporating effects of inbreeding and alternative routes by which alleles can be shared (two processes left out of eqn 1). By repeatedly implementing this method, an estimate of the coefficient of fraternity (i.e. the probability two individuals share both alleles identical by descent) is produced and standard errors (diminishing in magnitude with an increase in number of iterations) for the estimates in the D matrix can be calculated. The difference between the coefficients of fraternity derived from this method and eqn 1 is explained in Ovaskainen, Cano & Merilä (2008). The function makeDsim() implements this method as described in the appendix to Ovaskainen et al. R code, such as makeDsim (warcolak.ped, N = 10000, calcSE = TRUE), will construct the D inverse in matrix and list formats for use in an animal model. The resulting output can then be supplied to MCMCglmm, asreml, ASReml, or WOMBAT as described earlier and indicated in the Supporting Information. The argument N = in makeDsim supplies the number of iterations and thereby influences the standard error of each entry in D.
Epistatic relatedness matrix construction
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
In addition to the dominance matrix, three digenic epistatic relationship matrices (AA, AD and DD) can be constructed using the functions makeAA() and makeDomEpi() (for example, coefficients of relatedness because of digenic epistasis, see p. 145 of Lynch & Walsh 1998). The latter of these two functions can construct and invert D, AD and DD, all at once to save computing time. The results returned by both of these functions can be passed to MCMCglmm, asreml, ASReml and WOMBAT in the exact same way as previously discussed for makeD().
Sampling covariances and confidence intervals
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
One difficulty when estimating nonadditive genetic variances is that the covariance between relatives because of nonadditive genetic effects is highly confounded with other sources of similarities between relatives (e.g. full siblings also display phenotypic similarities because of shared additive, maternal and environmental effects). The sampling (co) variances for all random effects in an animal model can be informative for determining the extent to which random effects are confounded. These (co) variances of the variance estimates are derived from the ‘Average Information’ matrix in animal models that utilize the Average Information algorithm (Gilmour, Thompson & Cullis 1995) to obtain the Residual Maximum Likelihood (REML) parameter estimates. The function aiFun() extracts the sampling (co) variances from the Average Information matrix in asreml, allowing researchers to evaluate the precision and extent to which variance components are correlated with one another:

> aiFun(model = model.asr, Dimnames = c(“Va”, “Vd”, “Ve”))
Further, the Supporting Information demonstrates how a vector of these (co) variances can be obtained from the standalone ASReml or WOMBAT programs and used in R. The sampling (co) variances are organized into a matrix with the sampling (co) variances of each variance component as the diagonal and belowdiagonal elements and correlations as the abovediagonal elements. MCMCglmm uses a Bayesian approach to fitting models, not REML, but similar evaluations can be obtained by inspecting the posterior distributions and autocorrelation for variance components (Supporting Information).
Determining the extent to which variance components are confounded with one another can also be achieved after an asreml analysis by examining the profile likelihood surface of each component using proLik():

> profile.add < proLik(model.asr, component = “ped(ID)!ped”)
A profile likelihood is a representation of the model log likelihood when projected onto the parameter space for one particular parameter (or subset of parameters; Meyer 2008). The change in the model log likelihood (calculated as a likelihood ratio test statistic) can then be estimated along a range of values for a particular parameter, producing a profile likelihood surface. When graphically depicted, using plot.proLik(profile.add), the profile likelihood surface of each variance component in an animal model (Fig. 1) can be visually inspected to yield insights into the ability of the pedigree structure to produce precise and unconfounded variance component estimates (Meyer 2008). An additional utility of profile likelihoods is that they can be used to determine confidence intervals for the variance components estimated in a mixed model. This is often a more appropriate method than using the standard errors (or sampling variances from the Average Information matrix; Meyer 2008). Approximate 1 α upper and lower confidence limits can be obtained when using the proLik() function, for example by: profile.add$UCL and profile.add$LCL, respectively. The accuracy of the approximated confidence limits can be set with the threshold argument.
Additional functions
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
A few other functions are included in nadiv and may be useful to others working with pedigrees and sparse matrices (matrices containing mostly zeroes) in R. Notably, makeA() constructs the additive genetic relatedness matrix. sm2list() converts a sparse matrix (see the Matrix package) to a list consisting of three columns (‘row’, ‘column’ and value – the last being labelled by the user) that contain all nonzero, lower triangle elements of a matrix in row order. Finally, double first cousins are an informative relationship for estimating many types of genetic variance (e.g. Fairbairn & Roff 2006). The function findDFC() determines the number of unique pairs of double first cousins present in a pedigree.
Space, speed and saving
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
Constructing the inverse of D can require a large amount of computer memory and time for large, complex pedigrees. Although some modified methods to address these constraints exist (e.g. Hoeschele & VanRaden 1991; Schaeffer 2003), the functions contained in nadiv can be executed in a timely manner for the size and complexity of pedigrees usually studied in ecology and evolutionary biology (<10 000 individuals), even on personal computers. Additionally, automatic parallelization of the processing is available for many of the functions in nadiv (the default is always to use a single processor), which can often result in dramatic time savings (Supporting Information). Not all computer architectures will allow users to take advantage of this capability in R, so I refer those interested to the package documentation of nadiv for more consideration. Because creating D every session is time prohibitive for large populations, it is advisable to save nonadditive inverse matrices to a hard drive. The R functions save() and load() are useful to store and retrieve, respectively, because they preserve the R attributes that are required by the animal model programs in R (i.e. MCMCglmm and asreml).
More information about the functions in nadiv can be obtained from the package documentation (see the Comprehensive R Archive Network website: http://cran.rproject.org/web/packages/nadiv/index.html). For a more thorough treatment of how to use the functions in nadiv, please see the Supporting Information tutorials.
Acknowledgements
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
Special thanks to V. Careau, D.A. Roff, P.B. de Villemereuil and the participants of WAMBAM 2011 for insightful conversations about nonadditive sources of covariance between relatives. Additionally, thanks to M.B. Morrissey, an anonymous reviewer, and the Associate Editor for comments that improved this manuscript. M.E.W. is supported by the National Science Foundation through a Graduate Research Fellowship. This work was supported through a NSF grant to D.J. Fairbairn, D.A. Roff and M.E.W. (DDIG award number 1110617).
References
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
 2004) Effects of genetic drift on variance components under a general model of epistasis. Evolution, 58, 2111–2132. & (
 1992) Prediction of additive and dominance effects in selected or unselected populations with inbreeding. Theoretical and Applied Genetics, 84, 451–459. & (
 2005) The role of epistatic gene interactions in the response to selection and the evolution of evolvability. Theoretical Population Biology, 68, 179–196. , & (
 1990) Mutationselection balance and the evolutionary advantage of sex and recombination. Genetics Research, 55, 199–221. (
 1988) Permanency of response to selection for quantitative characters in finite populations. Proceedings of the National Academy of Sciences, USA, 85, 1563–1565. & (
 1995) Dominance variance: associations with selection and fitness. Heredity, 75, 530–540. & (
 1970) An Introduction to Population Genetics Theory. Harper and Row Publishers, New York. & (
 1994) Antagonistic pleiotropy, reversal of dominance, and genetic polymorphism. American Naturalist, 144, 210–228. , & (
 2006) The quantitative genetics of sexual dimorphism: assessing the importance of sexlinkage. Heredity, 97, 319–328. & (
 1958) The Genetical Theory of Natural Selection, 2nd edn. Dover, New York. (
 1993) Equilibria in an epistatic viability model under arbitrary strength of selection. Journal of Mathematical Biology, 31, 397–410. (
 1995) Average Information REML: an efficient algorithm for variance parameter estimation in linear mixed models. Biometrics, 51, 1440–1450. , & (
 2009) ASReml User Guide Release 3.0. VSN International Ltd., Hemel Hempstead, UK. , , & (
 1988) Epistasis and the effect of founder events on the additive genetic variance. Evolution, 42, 441–454. (
 2010) MCMC methods for multiresponse generalized linear mixed models: the MCMCglmm R package. Journal of Statistical Software, 33, 1–22. (
 1932) The Causes of Evolution. Longmans, Green & Company, New York. (
 1984) Applications of Linear Models in Animal Breeding. University of Guelph Press, Guelph, Ontario, Canada. (
 2003) Epistasis in polygenic traits and the evolution of genetic architecture under stabilizing selection. The American Naturalist, 161, 708–734. , & (
 1991) Additive and nonadditive genetic variance in female fertility of Holsteins. Journal of Dairy Science, 74, 1743–1752. (
 1991) Rapid inversion of dominance relationship matrices for noninbred populations by including sire by dam subclass effects. Journal of Dairy Science, 74, 557–569. & (
 2004) Estimating genetic parameters in natural populations using the ‘animal model’. Philosophical Transactions of the Royal Society B, 359, 873–890. (
 1998) Genetics and Analysis of Quantitative Traits. Sinauer, Sunderland, Massachusetts, USA. & (
 1999) Genetic architecture of fitness and nonfitenss traits: empirical patterns and development of ideas. Heredity, 83, 103–109. Direct Link: & (
 2007) WOMBAT – A tool for mixed model analyses in quantitative genetics by restricted maximum likelihood (REML). Journal Zhejiang Unviersity Science B, 8, 815–821. (
 2008) Likelihood calculations to evaluate experimental designs to estimate genetic variances. Heredity, 101, 212–221. (
 1997) Estimation of variance components with large scale dominance models. Journal of Dairy Science, 80, 965–974. (
 1997) Dominance models with method R for stature of Holsteins. Journal of Dairy Science, 80, 975–978. , & (
 2010) PEDANTICS: an R package for pedigreebased genetic simulation and pedigree manipulation, characterization and viewing. Molecular Ecology Resources, 10, 711–719. & (
 2005) Linear Models for the Prediction of Animal Breeding Values, 2nd edn. CABI Publishing, Massachusetts, USA. . (
 1995) The population genetics of speciation: the evolution of hybrid incompatabilities. Genetics, 139, 1805–1813. (
 2008) A Bayesian framework for comparative quantitative genetics. Proceedings of the Royal Society B, 275, 669–678. , & (
 R Development Core Team (2011) R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.Rproject.org/ [accessed 20 November 2011].
 1997) Evolutionary Quantitative Genetics. Chapman & Hall, New York. (
 2003) Computing simplifications for nonadditive genetic models. Jouranl of Animal Breeding and Genetics, 120, 394–402. (
 1990) Genotypic covariance matrices and their inverses for models allowing dominance and inbreeding. Genetics, Selection, and Evolution, 22, 65–91. & (
 2002) Likelihood, Bayesian, and MCMC Methods in Qunatitative Genetics. SpringerVerlag, New York, USA. & . (
 1991) Additive and dominance genetic variation for dairy production traits under an animal model. Journal of Animal Breeding and Genetics, 108, 330–342. Direct Link: & (
 2001) Additive and nonadditive genetic architecture of two differentsized populations of Scabiosa canescens. Heredity, 86, 648–657. (
 2008) Efficient Markov Chain Monte Carlo implementation of Bayesian analysis of additive and dominance genetic variances in noninbred pedigrees. Genetics, 179, 1101–1112. , , & (
 2004) Accumulating DobzhanskyMuller incompatabilities: reconciling theory and data. Evolution, 58, 1145–1156. (
 1993) Increased heritable variation following population bottlenecks: the role of dominance. Evolution, 47, 949–957. & (
 1929) Fisher’s theory of dominance. American Naturalist, 63, 274–279. (
Supporting Information
 Top of page
 Summary
 Introduction
 Dominance relatedness matrix construction: makeD()
 Dominance relatedness matrix construction: makeDsim()
 Epistatic relatedness matrix construction
 Sampling covariances and confidence intervals
 Additional functions
 Space, speed and saving
 Acknowledgements
 References
 Supporting Information
Appendix S1. Relatedness matrices in the animal model.
Appendix S2. nadiv.
Appendix S3. MCMCglmm Tutorial.
Appendix S4. ASRemlR Tutorial.
Appendix S5. ASReml (standalone) Tutorial.
Appendix S6. WOMBAT Tutorial.
ASReml (standalone) files. ASwarcolak.dat & ASwarcolak.ped.
WOMBAT files. WOMBATdata.d & WOMBATped.d.
As a service to our authors and readers, this journal provides supporting information supplied by the authors. Such materials may be reorganized for online delivery, but are not copyedited or typeset. Technical support issues arising from supporting information (other than missing files) should be addressed to the authors.
Filename  Format  Size  Description 

MEE3_213_sm_suppmat.pdf  430K  Supporting info item  
MEE3_213_sm_Supplementary.zip  237K  Supporting info item 
Please note: Wiley Blackwell is not responsible for the content or functionality of any supporting information supplied by the authors. Any queries (other than missing content) should be directed to the corresponding author for the article.