Linear mixed model
It is imperative to write the statistical model correctly first before writing the model in ASReml or in other software. Given the mating design and the experimental design, we can use the following linear model to decompose phenotypic variance of a trait into genetic and environmental components: