2.6 Inference for fixed effects 18then A and B are said to be marginal to A.B, and 1 is marginal to A and B. In a threeway factorial model given byy ∼ 1 + A + B + C + A.B + A.C + B.C + A.B.Cthe terms A, B, C, A.B, A.C and B.C are marginal to A.B.C. Nelder [1977, 1994] arguesthat meaningful and interesting tests for terms in such models can only be conducted forthose tests which respect marginality relations. This philosophy underpins the followingdescription of the second Wald statistic available in asreml, the so-called conditional Waldstatistic. This method is invoked by specifying ssType = conditional in wald.asreml().asreml attempts to construct conditional Wald statistics for each term in the fixed denselinear model so that marginality relations are respected. As a simple example, for thethree way factorial model the conditional Wald statistics would be computed asTerm Sums of Squares M code1 R(1) .A R(A | 1,B,C,B.C) = R(1,A,B,C,B.C) - R(1,B,C,B.C) AB R(B | 1,A,C,A.C) = R(1,A,B,C,A.C) - R(1,A,C,A.C) AC R(C | 1,A,B,A.B) = R(1,A,B,C,A.B) - R(1,A,B,A.B) AA.B R(A.B | 1,A,B,C,A.C,B.C) = R(1,A,B,C,A.B,A.C,B.C) - R(1,A,B,C,A.C,B.C) BA.C R(A.C | 1,A,B,C,A.B,B.C) = R(1,A,B,C,A.B,A.C,B.C) - R(1,A,B,C,A.B,B.C) BB.C R(B.C | 1,A,B,C,A.B,A.C) = R(1,A,B,C,A.B,A.C,B.C) - R(1,A,B,C,A.B,A.C) BA.B.C R(A.B.C | 1,A,B,C,A.B,A.C,B.C) = R(1,A,B,C,A.B,A.C,B.C,A.B.C) -R(1,A,B,C,A.B,A.C,B.C)COf these the conditional Wald statistic for the 1, B.C and A.B.C terms would be the sameas the incremental Wald statistics produced using the linear modely ∼ 1 + A + B + C + A.B + A.C + B.C + A.B.CThe preceeding table includes a marginality or M code reported when conditional Waldstatistics are requested. All terms with the highest M code letter are tested conditionallyon all other terms in the model, that is, by dropping the term from the maximal model.All terms with the preceding M code letter, are marginal to at least one term in a highergroup, and so forth. For example, in the table, model term A.B has M code B because itis marginal to model term A.B.C and model term A has M code A because it is marginalto A.B, A.C and A.B.C. Model term mu (M code .) is a special case in that it is marginalto factors in the model but not to covariates.Consider now a nested model which might be represented symbolically byy ∼ 1 + REGION + REGION.SITEFor this model, the incremental and conditional Wald tests will be the same. However,it is not uncommon for this model to be specified asy ∼ 1 + REGION + SITEwith SITE identified across REGION rather than within REGION. Then the nested structureis hidden but asreml will still detect the structure and produce a valid conditionalWald F-statistic. This situation will be flagged in the M code field by changing the letterto lower case. Thus, in the nested model, the three M codes would be ., A and B becauseREGION.SITE is obviously an interaction dependent on REGION. In the second model,REGION and SITE appear to be independent factors so the initial M codes are ., A andA. However they are not independent because REGION removes additional degrees offreedom from SITE, so the M codes are changed from ., A and A to ., a and A.We advise users that the aim of the conditional Wald statistic is to facilitate inferencefor fixed effects. It is not meant to be prescriptive nor is it foolproof for every setting.The Wald statistics are collectively returned by wald.asreml(). The basic table includesthe numerator degrees of freedom (denoted ν 1i ) and the incremental Wald F-statisticfor each term. To this is added the conditional Wald F-statistic and the M code ifssType=”conditional”.
2.6 Inference for fixed effects 192.6.3 Kenward and Roger AdjustmentsIn moderately sized analyses, asreml can also calculate the denominator degrees of freedom(DenDF, denoted by ν 2i , [Kenward and Roger, 1997]) and a probablity value if thesecan be computed. They will be for the conditional Wald F-statistic if it is reported. ThedenDF argument of wald.asreml() controls the supression (denDF = ”none”) or the use ofa particular algorithmic method: denDF = ”numeric” for numerical derivatives or denDF= ”algebraic” for algebraic derivatives. The value in the probability column is computedfrom an F ν1i ,ν 2i<strong>reference</strong> distribution. When the DenDF is not available, it is possible,though anti-conservative, to use the residual degrees of freedom for the denominator.Kenward and Roger [1997] pursued the concept of construction of Wald-type test statisticsthrough an adjusted variance matrix of ˆτ . They argued that it is useful to consideran improved estimator of the variance matrix of ˆτ which has less bias and accountsfor the variability in estimation of the variance parameters. There are two reasons forthis. Firstly, the small sample distribution of Wald tests is simplified when the adjustedvariance matrix is used. Secondly, if measures of precision are required for ˆτ or effectstherein, those obtained from the adjusted variance matrix will generally be preferred.Unfortunately the Wald statistics are currently computed using an unadjusted variancematrix.2.6.4 Approximate stratum variancesasreml returns approximate stratum variances and degrees of freedom for simple variancecomponents models in the component stratumVariances of the object returned fromwald.asreml().For the linear mixed-effects model with variance components (setting σ 2 = 1) where G =H⊕ q j=1 γ jI bj , it is often possible to consider a natural ordering of the variance componentparameters including σ 2 . Based on an idea due to Thompson [1980] asreml computesapproximate stratum degrees of freedom and stratum variances by a modified Choleskydiagonalisation of the expected (or average) information matrix. That is, if F is theaverage information matrix for σ, let U be an upper triangular matrix such that F =U ′ U. Further we defineU c = D c Uwhere D c is a diagonal matrix whose elements are given by the inverse elements of thelast column of U ie d cii = 1/u ir , i = 1, . . . , r. The matrix U c is therefore upper triangularwith the elements in the last column equal to one. If the vector σ is ordered in the naturalway, with σ 2 being the last element, then we can define the vector of so called pseudostratum variance components byξ = U c σThencevar (ξ) = D 2 cThe diagonal elements can be manipulated to produce effective stratum degrees of freedom[Thompson, 1980] vizν i = 2ξ 2 i /d 2 ciiIn this way the closeness to an orthogonal block structure can be assessed.