Lecture 6
Lecture 6
6. Indicator Variables
1 if characteristic is present
𝐷=
0 if characteristic is not present
For example, for the house price model (Hedonic model), we can define an
indicator variable, to account for a desirable neighborhood, as:
3
Intercept Indicator Variables
𝑃𝑅𝐼𝐶𝐸 = 𝛽1 + 𝛿𝐷 + 𝛽2 𝑆𝑄𝐹𝑇 + 𝑒
4
Slope Indicator Variables
Instead of assuming that the effect of location on house price causes a change
in the intercept of the hedonic regression, let us assume that the change is in
the slope of the relationship.
If we assume that this is one value for homes in the desirable neighborhood,
and another value for homes in other neighborhoods, we can specify:
𝑃𝑅𝐼𝐶𝐸 = 𝛽1 + 𝛽2 𝑆𝑄𝐹𝑇 + 𝛾 𝑆𝑄𝐹𝑇 ∗ 𝐷 + 𝑒
The new variable (SQFT × D) is the product of house size and the indicator
variable, and is called an interaction variable, as it captures the interaction
5
effect of location and size on house price.
Illustration
8
Illustration
9
Illustration
11