# Analysis of Covariance

I’ve decided to present the statistical model for the Analysis of Covariance design in regression analysis notation. The model shown here is for a case where there is a single covariate and a treated and control group. We use a dummy variables in specifying this model. We use the dummy variable `Z`

to represent the treatment group. The beta values (_{i}`Î²`

s) are the parameters we are estimating. The value `Î²`

represents the intercept. In this model, it is the predicted posttest value for the control group for a given _{0}`X`

value (and, when `X=0`

, it is the intercept for the control group regression line). Why? Because a control group case has a `Z=0`

and since the `Z`

variable is multiplied with `Î²`

, that whole term would drop out._{2}

The data matrix that is entered into this analysis would consist of three columns and as many rows as you have participants: the posttest data, one column of `0`

s or `1`

s to indicate which treatment group the participant is in, and the covariate score.

This model assumes that the data in the two groups are well described by straight lines that have the same slope. If this does not appear to be the case, you have to modify the model appropriately.

$$ y_i = \beta_0 + \beta_1 X_i + \beta_2 Z_i + e_i $$

*where:*

`y`

is the outcome for the_{i}`i`

^{th}unit,`Î²`

is coefficient for the intercept,_{0}`Î²`

is the pretest coefficient,_{1}`Î²`

is the mean difference for treatment,_{2}`X`

is the covariate,_{i}`Z`

is the dummy variable for treatment:_{i}`0`

for control,`1`

for treatment,

`e`

is the residual for the_{i}`i`

^{th}unit.