Beruflich Dokumente
Kultur Dokumente
(Analysis of Covariance)
Katie Langin BIOL 843
Linear Regression
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
ANOVA
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
= ANCOVA
ANCOVA
Covariance
the degree to which two variables vary together (covary)
ANCOVA
A, B X1, X2
What is a covariate?
A source of variation that affects the response variable, but was not controlled for during study design (often observational studies). It cannot be related to any categorical factor being tested (i.e. must be independent). It serves to reduce the unexplained variance and thus increase the precision of group mean estimates.
Result is increased power!
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
Constable (1993)
(p - 1)
MSA(adj) MSResidual(adj)
p(n - 1) - 1
pn - 2
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
An Example
Sex and fruitfly longevity
response variable = longevity (log transformed) factor = partner type (5 treatments)
1. 2. 3. 4. 5. 1 virgin female per day 8 virgin females per day control (1 pregnant female per day) control (8 pregnant females per day) control (no females)
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
Fruitfly example
Fit Model: (log longevity)ij = overall mean + (treatment)i + (thorax length)ij + ij
H0: no significant difference in longevity (adjusted for thorax length) between treatment groups
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture.
Fruitfly example
Treatment
1 2 3 4 5 (1 virgin) (8 virgin) (1 preg) (8 preg) (no partners)
Adjusted Mean
1.717 1.589 1.794 1.808 1.771 0.017
Unadjusted Mean
1.737 1.564 1.799 1.789 1.789 0.025
SE
Assumptions
Normality Homogeneity of variances Independence Linearity Covariate values not different among groups Fixed covariate Homogenous slopes
Assumptions
Normality Homogeneity of variances Independence Linearity Covariate values not different among groups Fixed covariate Homogenous slopes
Assumptions
Normality Homogeneity of variances Independence Linearity Covariate values not different among groups Fixed covariate Homogenous slopes
Assumptions
Normality Homogeneity of variances Independence Linearity Covariate values not different among groups Fixed covariate Homogenous slopes
Assumptions
Normality Homogeneity of variances Independence Linearity Covariate values not different among groups Fixed covariate Homogenous slopes
Homogenous Slopes
H0: 1 = 2 = i = To test: include interaction term (A*X) in the ANCOVA model. If P>0.05 (for A*X), H0 accepted
analyses can proceed without the interaction term.
If P<0.05, H0 rejected
Above test is stringent; examine plots of regression lines before concluding the slopes are heterogenous. If necessary, use Wilcox modification of the Johnson-Neyman procedure (described next). But remember that interactions can be interesting in their own right.
LBI
(baseline bacteria count) Drug D LBS
Placeb o
ANOVA:
F = 3.67 P = 0.04
15
LSI
10
Drug A
Drug D
Placebo
Question: Was this technique appropriate? Why or why not? Answer: Inappropriate. An assumption was violated; the covariate values were not similar across groups.
ANCOVA: A Summary
An ANCOVA is essentially an ANOVA on a continuous response variable adjusted by the regression of Y vs. the covariate X. The inclusion of covariates in the model can reduce unexplained variation and thus increase power. Absolutely essential to test for homogeneity of slopes across groups.