LECTURE 13 ANALYSIS OF COVARIANCE AND COVARIANCE INTERACTION and ATI (Aptitude-Treatment Interaction)
ANCOVA ANCOVA model The simplest ANCOVA model includes a covariate C, an exogenous treatment variable X, and an outcome Y: y ij = y + i ij + c ij + e ij This is a regression equation relating the exogenous variables to the endogenous outcome. In classical ANOVA terms, the model is written as y ij = y + i i + (c ij - c.. ) + e ij In this formulation the grand mean y plays the same role as in ANOVA, the mean performance of all populations. The term i i is the effect of the treatment, and the term ( c ij - x i. ) is the regression effect of the covariate deviation from the covariate grand mean on the outcome. This equation can be rewritten as y ij = ( - C ) + i i + c ij + e ij
SOURCEdfSum of SquaresMean Square F Covariate 1 R 2 (c ij – c..) 2 SS c SS c /MS e Treatment…k-1n ( ŷ i. – y.. ) 2 SS treat / k-1 MS treat /MS e error n(k-1)-1 ( ŷ ij - ŷ i. ) 2 SS e / [n(k-1)-1]- total kn-1 ( ŷ ij – y.. ) 2 SS y.c / (n-1)- Table 12.1: Analysis of Covariance table
ss treat SS y Fig. 12.4: Venn diagram for ANCOVA withcovariate, k treatments and outcome SS e Covariate e a. Randomized design SS Covariate e ss treat, Type III SS e y b. Nonrandomized design SS c c
HLM Issues Random Intercepts and Slopes: –Suppose we assume the regressions for the various groups are NOT based on fixed covariate values but that these are samples from the population (the real situation). Then the intercepts and slopes are not fixed but can vary randomly from sample to sample –This means that the covariate is a RANDOM factor, not a fixed factor; either or both intercept and slope could be random.
Random Covariate Parameters Y = b 0j + b 1j X ij + e ij [student i in cluster j first level model] b 0j = g 00 + g 01 Z j + u 0j [intercept regression equation depends on cluster j second level value Z] b 1j = g 10 + g 11 Zj + u 1j [slope depends on cluster j second level value Z]
Random Covariate Parameters Example: students in a classroom: achievement Y is a function of expectation for mastery X Classrooms have a teacher-defined learning climate Z, and the level (intercept) of achievement Y depends on this climate as well as the relationship of achievement to expectation for mastery (slope)
Random Covariate Parameters Random intercepts Random slopes Covariate X Y b 1j = g 10 + g 11 Z j + u 1j b 0j = g 00 + g 01 Z j + u 0j Group 1 Group 2 Group 3 Group 4
Mixed Models procedures Fixed Effects ANOVA Table Source df MS F sig. Random Effects Variance-Covariance Table SourceVariance S.E.sig. SourcesCovariance S.E. sig.
SAS approach proc mixed noclprint covtest noitprint ; class cls ; model mnrat1=OVAG gen eth eth*gen gen*OVAG eth*OVAG gen*eth*OVAG /solution ddfm=bw ; random intercept OVAG/sub=cls type=un;
Covariance Parameter Estimates RANDOM EFFECTS Standard Z Cov Parm Subject Estimate Error Value Pr Z intercept UN(1,1) cls <.0001 corr(i,s)UN(2,1) cls slope UN(2,2) cls Residual <.0001 Type 3 Tests of Fixed Effects Num Den Effect DF DF F Value Pr > F OVAG <.0001 gen <.0001 eth <.0001 gen*eth OVAG*gen OVAG*eth OVAG*gen*eth