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 c′1β and c′2β are orthogonal if and only if their BLUEs c′1ˆβ and c′2ˆβ are uncorrelated.
- cov(c′1ˆβ,c2ˆβ)=σ2c′1(X′X)−c2. Thus, estimable linear combinations c′1β and c′2β are orthogonal if and only if c′1(X′X)−c2=0.
Contrast: A linear combinations c′β is a contrast if and only if c′1=0.
Orthogonal Contrast: Two estimable contrasts c′1β and c′2β are orthogonal are called orthogonal contrasts.
Suppose c′1β,…,c′qβ are pairwise orthogonal linear combinations. Let C′=[c1,…,cq]. When C has rank q, ˆβ′C′[C(X′X)−C′]−1Cˆβ=∑qi=1(c′kˆβ)2/c′k(X′X)−ck.
- SAS code:
;
proc mixedclass diet drug;
=diet drug diet*drug;
model weightgain*drug / slice=diet;
lsmeans diet1 - 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;
estimate ’drug ; 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.