Chapter 9 Orthogonal Linear Combinations, Contrasts and Additional Partitioning of ANOVA Sums of Squares

  • Orthogonal: Under the model y=Xβ+ϵ,ϵN(0,σ2I), two estimable linear combinations c1β and c2β are orthogonal if and only if their BLUEs c1ˆβ and c2ˆβ are uncorrelated.

    • cov(c1ˆβ,c2ˆβ)=σ2c1(XX)c2. Thus, estimable linear combinations c1β and c2β are orthogonal if and only if c1(XX)c2=0.
  • Contrast: A linear combinations cβ is a contrast if and only if c1=0.

  • Orthogonal Contrast: Two estimable contrasts c1β and c2β are orthogonal are called orthogonal contrasts.

Suppose c1β,,cqβ are pairwise orthogonal linear combinations. Let C=[c1,,cq]. When C has rank q, ˆβC[C(XX)C]1Cˆβ=qi=1(ckˆβ)2/ck(XX)ck.

  • SAS code:
proc mixed;
    class diet drug;
    model weightgain=diet drug diet*drug;
    lsmeans diet*drug / slice=diet;
    estimate ’drug 1 - drug 2 for diet 1’  drug 1 -1 0 diet*drug 1 -1 0 0 0 0 / cl;
    estimate ’drug 1 - drug 3 for diet 1’  drug 1 0 -1 diet*drug 1 0 -1 0 0 0;
    estimate ’drug 2 - drug 3 for diet 1’  drug 0 1 -1 diet*drug 0 1 -1 0 0 0;
    estimate ’drug 1 - drug 2 for diet 2’  drug 1 -1 0 diet*drug 0 0 0 1 -1 0;
    estimate ’drug 1 - drug 3 for diet 2’  drug 1 0 -1 diet*drug 0 0 0 1 0 -1;
    estimate ’drug 2 - drug 3 for diet 2’  drug 0 1 -1 diet*drug 0 0 0 0 1 -1;
run;
  • Comments on the analysis
    • Note that the main analysis focuses on pairwise comparisons of drugs within each diet.
    • This involves a set of six contrasts, but the contrasts are not pairwise orthogonal within either diet.
    • The sums of squares for these contrasts do not add up to any ANOVA sums of squares, but they are the contrasts that best address the researchers’ questions.
    • If we want to control the probability of one or more type I errors, we could use Bonferroni’s method. In this case, the adjustment for multiple testing would not change the conclusions.