Categorical Variables

Also known as · Categorical Variable

A variable whose values are categories rather than numbers, such as family status (married, single, divorced). A categorical variable with KK categories enters the regression as K−1K-1 dummy variables, with the left-out group as the Base Category; each dummy coefficient is the gap between its category and the base.

When to use

Whenever a regressor is a group label. Include K−1K-1 dummies plus the intercept (all KK falls into the Dummy Variable Trap), and test whether the variable matters as a whole with a joint F-test on all its dummies, not separate t-tests.

See Lecture 10.

Appears in

No references yet.