Combining Quantitative and Qualitative Predictors In an ANCOVA we try to adjust for differences in the quantitative variable. For example, suppose that we were to compare mens average faculty income to womens average faculty income here at OU faculty.
Looking for a difference involves an ANOVA Explaining the difference (if one is found) involves an ANCOVA
What if?
The ANCOVA is many ways is a what if analysis what if men and women had the same amount of experience? Would we still see the difference in income? Inherent in this analysis is the possibility that the what if question is relevant. For example, it would be silly to compare basketball teams adjusting for the heights of players. This would be a meaningless comparison.
That is, we would like to show that the difference is due to relevant performance criteria. If we cant show that this is the case, then we have a serious discrimination problem.
women Womens adjusted mean Adjusted differences women Experience Grand mean on experience men
ANCOVA
ANOVA
DF 2 77 79
F Value 4.24
Pr > F 0.0178
Corrected Total N 50 50 Mean 21.24 13.12 Std Dev 11.43 2.80 Minimum 9.00 7.00 Maximum 60.00 20.00
ANCOVA Results
Type I SS 838.117 3061.307 Mean Square 419.058 3061.307 F Value 7.01 51.23 Pr > F 0.0016 <.0001
Notice that the Type I and Type III Sums of Squares are different
We see that even after we adjust for education there is still a difference between the averages.
Blacks
Adjusted Means
To obtain the adjusted means we use the regression equation for each group and the overall x mean
lsmeans
Income
Estimate Statements
ANCOVA Parameter black vs white Estimate -5.43722419 Standard Error 2.23651016 t Value -2.43 Pr > |t|
SS I
SS(A| )
SS II
SS(A| ,B)
SS III
SS(A| , B,AB)
A B
Estimate -7.36500000 Standard Error 2.85401409 t Value -2.58 Pr > |t|
ANOVA Results
Parameter black vs white
SS(B| ,A)
SS(B| ,A)
SS(B| ,A,AB)
A*B
0.0118
SS(AB| ,A,B)
SS(AB| ,A,B)
SS(AB| ,A,B)
SAS Type II SS
SAS model statement: model y= trt cov trt*cov; SS(trt | ,cov) SS(cov | , trt) SS(trt*cov | , trt, cov) Type II SS do not necessarily add up to the model SS. The SSs are not independent.
(1 R 2 f ) / df e
The reduced model is the full model minus the element being tested.
lsmean