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 categories enters the regression as 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 dummies plus the intercept (all 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.