Lecture 3: ANOVA & ANCOVA (ARMS, Utrecht University)

ANOVA: comparing groups on a continuous variable. The analysis separates between group variation and within group variation.

But what if there are more factors that influence the outcome y? You need to control for them. You use an ANCOVA to do this. Example: you want to research whether there is a difference in cognitive abilities between babies of teen moms and adult moms. But, not only age, but also IQ influences the cognitive abilities. You need to control for IQ when conducting this experiment.

In an ANCOVA, you always need a categorical predictor (factor): we want to compare groups so there must be a variable creating groups.

The covariate is always continuous.

Homogeneity is an assumption for ANCOVA. Checking homogeneity:

1. When you draw a line through the clouds of the scatter plot, the lines of the two groups must be parallel. If not, there is no homogeneity of regression slopes.

2. You can also check homogeneity by looking at the significance of the interaction effect. If the effect is significant: there is no homogeneity. If the effect is not significant the assumption is met.

Do both 1&2!

There is another assumption (but researchers don’t all agree on how to interpret this) that states that there should be independence of the covariate and the factor:

  • ANCOVA can be used for groups that are randomized. Then any differences between the groups are chance differences, because they are random. So we all agree that if you see that random groups differ, you use covariates to control for these chance differences.
  • But they also conclude that ANCOVA should never be used on existing groups. So some people say that you should not use (using the example above) IQ as covariate because it is not independent of the factor, and that’s a violation of the assumption. But in practice we say: be careful with the interpretation of existing groups.

AN(C)OVA test statistic: F = MSgroup/MSresidual

Adding a covariate will change the F-test if:

  • Adjusted means change (this has an effect on MSgroup )
  • The covariate is (strongly) related to Y (this has an effect on MSresidual )

So: inclusion of a covariate can be useful when groups differ on the covariate, but also when they do not! But, to be useful, the covariate must be related to Y.

In a regression model, you have R2 for the explained variance. In AN(C)OVA we have a similar measure, called eta-squared. But SPSS provides the partial eta-squared. This is still the amount of variance explained, but it’s not divided by the total variation but by the sum of the variance of this effect and the residuals. So it answers: how much variance is explained compared to the part that’s not explained (since there are more effects in one model).

The AN(C)OVA tells you whether or not there is a difference between the groups. If you find a difference, you need follow-up testing to know which group differ. In this case, you can use a post-hoc test, which tells you what groups differ significantly using pairwise comparisons. A post-hoc test uses correction to protect against inflated type 1 errors.

There is another approach, called planned comparisons. This uses specific contrast-tests. Before you do the analysis, you specify the specific groups you want to compare (for example if you expect groups to differ). It then only analyses the part you’re interested in, and does not (usually) do any alpha corrections.  

One correction that is often used in a post-hoc test is the Bonferroni correction. This multiplies the p-value by the amount of tests you run, so that the user can still compare the p-value that SPSS shows to the original alpha level.

Questions? Let me know in the contribution section!

Follow me for more summaries on statistics!

Image

Access: 
Public

Image

Image

 

 

Contributions: posts

Help other WorldSupporters with additions, improvements and tips

Image

Spotlight: topics

Check the related and most recent topics and summaries:
Institutions, jobs and organizations:

Image

Check how to use summaries on WorldSupporter.org
Submenu: Summaries & Activities
Follow the author: JuliaV
Work for WorldSupporter

Image

JoHo can really use your help!  Check out the various student jobs here that match your studies, improve your competencies, strengthen your CV and contribute to a more tolerant world

Working for JoHo as a student in Leyden

Parttime werken voor JoHo

Statistics
Search a summary, study help or student organization