Charta is on Google Play: practise on the go. Get the app

Build a multiple regression containing qualitative explanatory variables and explain what its output means

CFA® Level II · Quantitative Methods · Extensions of Multiple Regression · L2.QM.4.b

The idea

A qualitative factor enters a regression through dummy variables coded 0 or 1. With n categories use n − 1 dummies, otherwise they sum to the intercept and create perfect collinearity: the dummy variable trap. An intercept dummy shifts the line up or down for the category, so its coefficient is the difference in the expected dependent variable against the omitted base group. A slope dummy, the dummy multiplied by a continuous variable, lets that variable's effect differ by category. With both, the category's intercept is b0 plus the dummy coefficient and its slope is the base slope plus the interaction coefficient. A t-test on each tells whether the difference is significant.

Formulas

Regression with dummy variables

Y = b₀ + b₁ × D + b₂ × X

Y
the variable being explained
D
a dummy that is 1 for one category and 0 otherwise
X
a continuous explanatory variable
b₁
the shift in the intercept for the category
b₂
the slope on X
b₀
the intercept for the base category

Use one fewer dummy than there are categories, or the model cannot be estimated.

In the app: 7 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.

Take the free diagnostic →

More in Extensions of Multiple Regression