Chapter 7 PDF
Chapter 7 PDF
Chapter 7 PDF
5. Dummy Variables
{
d0
y = b0 + b1x
d=0
} b0
x
Economics 20 - Prof. Anderson 4
Dummies for Multiple Categories
We can use dummy variables to control for
something with multiple categories
Suppose everyone in your data is either a
HS dropout, HS grad only, or college grad
To compare HS and college grads to HS
dropouts, include 2 dummy variables
hsgrad = 1 if HS grad only, 0 otherwise;
and colgrad = 1 if college grad, 0 otherwise
d=1
y = (b0 + d0) + (b1 + d1) x
x
Economics 20 - Prof. Anderson 10
Testing for Differences Across
Groups
Testing whether a regression function is
different for one group versus another can
be thought of as simply testing for the joint
significance of the dummy and its
interactions with all other x variables
So, you can estimate the model with all the
interactions and without and form an F
statistic, but this could be unwieldy
Economics 20 - Prof. Anderson 11
The Chow Test
Turns out you can compute the proper F statistic
without running the unrestricted model with
interactions with all k continuous variables
If run the restricted model for group one and get
SSR1, then for group two and get SSR2
Run the restricted model for all to get SSR, then
F
SSR SSR1 SSR2 n 2k 1
•
SSR1 SSR2 k 1
Economics 20 - Prof. Anderson 12
The Chow Test (continued)
The Chow test is really just a simple F test
for exclusion restrictions, but we’ve
realized that SSRur = SSR1 + SSR2
Note, we have k + 1 restrictions (each of
the slope coefficients and the intercept)
Note the unrestricted model would estimate
2 different intercepts and 2 different slope
coefficients, so the df is n – 2k – 2