Reference Groups, Parallel Lines, and Different Slopes

A dummy variable takes values 0 and 1. In a two-group model Y = beta0 + beta1D + epsilon, D=0 is the reference group and beta0 is its fitted mean or intercept. For D=1, the fitted value is beta0+beta1, so beta1 is the modeled difference from the reference group, holding any other included predictors fixed.


With an intercept and a categorical variable having k levels, use k-1 dummies, which keeps the design full rank and leaves the k group means unrestricted.


Including all k level indicators plus an intercept creates exact linear dependence because the indicators sum to one in every row. This is the dummy-variable trap. Changing the reference group changes coefficient labels and signs, not fitted values or predictions.


An interaction changes a slope. In Y = beta0 + beta1X + beta2D + beta3XD + epsilon, the D=0 line has intercept beta0 and slope beta1. The D=1 line has intercept beta0+beta2 and slope beta1+beta3. Beta3 is not the D=1 slope by itself; it is the difference between group slopes.


Interpret within the observed coding and adjustment set. A group coefficient after controlling for X is a conditional association. It need not equal a causal effect, and changing the reference or centering X can make intercepts easier to interpret without changing fitted lines.

A fitted model is score = 48 + 6D, where D=1 for students using a practice schedule and D=0 otherwise. What does the coefficient 6 represent?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A regression includes an intercept and a three-level program variable with levels A, B, and C. Which coding retains the intercept, avoids exact multicollinearity, and represents the three nominal program levels without imposing equality constraints on their group means?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A model is Y = 70 + 4H + 5D - 2HD, where H is study hours and D=1 for an evening section and 0 for a daytime section. What is the fitted slope of Y with respect to H for the evening section?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors