Download ASReml User Guide - VSN International
Transcript
6 Command file: Specifying the terms in the mixed model 6.1 83 Introduction The linear mixed model is specified in ASReml as a series of model terms and qualifiers. In this chapter the model formula syntax is described. 6.2 Specifying model formulae in ASReml The linear mixed model is specified in ASReml as a series of model terms and qualifiers. Model terms include factor and variate labels (Section 5.4), functions of labels, special terms and interactions of these. The model is specified immediately after the datafile and any job control qualifier and/or tabulate lines. The syntax for specifying the model is NIN Alliance Trial 1989 variety . . . column 11 nin89.asd !skip 1 yield ∼ mu variety !r repl, !f mv 1 2 11 column AR1 .3 22 row AR1 .3 response [!wt weight] ∼ fixed [!r random] [!f sparse fixed] • response is the label for the response variable(s) to be analysed; multivariate analysis is discussed in Chapter 8, • weight is a label of a variable containing weights; weighted analysis is discussed in Section 6.7, • ∼ separates response from the list of fixed and random terms, • fixed represents the list of primary fixed explanatory terms, that is, variates, factors, interactions and special terms for which analysis of variance (ANOVA) type tests are required. See Table 6.1 for a brief definition of reserved model terms, operators and commonly used functions. The full definition is in Section 6.6, • random represents the list of explanatory terms to be fitted as random effects, see Table 6.1, • sparse fixed are additional fixed terms not included in the ANOVA table. General rules The following general rules apply in specifying the linear mixed model • all elements in the model must be space separated, • the character ∼ separates the response variables(s) from the explanatory variables in the model,