Analyses

ANCOVA

Compare group means on one outcome while holding a numeric covariate constant.

Edit on GitHub

When to use it

Use ANCOVA when groups might differ on an outcome partly because they already differed on something you measured first. For example: do lecture and workshop students differ on the exam after you account for their pretest?

The covariate should be related to the outcome and measured before the grouping, or at least not caused by it. ANCOVA does not fix a badly designed study. It adjusts the group comparison for a linear relationship with the covariate.

Assumptions

The outcome and the covariate are numeric. The groups are separate. The slope that links the covariate to the outcome should be roughly the same in every group. That is homogeneity of regression slopes.

Tensr does not test that assumption for you. The option include_interaction fits a group × covariate term, which is the check, and it starts off. Turn it on if you need to see whether the slopes differ. If that term is significant, a single adjusted group difference is hard to defend.

There is no Levene test, no Shapiro–Wilk test, and no partial η² column. The featured metric is R².

Running it in Tensr

Analyze → General Linear Model → ANCOVA. In chat: “ANCOVA of score by method, controlling for pretest.”
Group column is the grouping variable. Outcome column is the numeric result. Covariate column is the numeric control.
Include interaction starts off, so the default model is group plus covariate, without a product term.

Options

Prop

Type

Reading the output

Teaching method on the exam, with study hours as the covariate. Hours and method both have a moderate link to the score.

SourceSum of squaresdfFp-value
method294.5422.436.093
hours472.67417.819.006
Residual5,561.76292——

ANCOVA of score by method controlling for hours, n = 96. ANCOVA of score by method controlling for hours, n = 96. Metrics: R² = 0.152.

Reporting (APA 7)

ANCOVA of score by method controlling for hours, n = 96. Report the estimate in the table. This procedure is not summarised by one p-value.

Coming from SPSS

Analyze → General Linear Model → Univariate, with the group as a fixed factor and the pretest as a covariate.

SPSS can print estimated marginal means and a homogeneity-of-slopes test if you add the interaction. Tensr’s default leaves that interaction off. Turn on include_interaction for the slopes check. Tensr does not print adjusted means.

No covariate: one-way ANOVA or two-way ANOVA. Several outcomes at once: MANOVA.