Econometrics Unit 7 Dummy Variables: Amado Peiró (Universitat de València)
Econometrics Unit 7 Dummy Variables: Amado Peiró (Universitat de València)
Econometrics Unit 7 Dummy Variables: Amado Peiró (Universitat de València)
UNIT 7
DUMMY VARIABLES
1
7.1 Dummy variables
1 if 𝑖𝑖 is a man
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝑖𝑖 = �
0 if 𝑖𝑖 is a woman
2
♂: E 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑖𝑖 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝑖𝑖 = 1 = 𝛽𝛽1 + 𝛽𝛽2 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖 + 𝛽𝛽3
♀: E 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑖𝑖 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝑖𝑖 = 0 = 𝛽𝛽1 + 𝛽𝛽2 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖
───────────────────────────────────
E 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑖𝑖 │♂ − E 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑖𝑖 │♀ = 𝛽𝛽3
3
7.2 Dummy variables with any number of categories
4
7.3 Interactions with dummy variables
𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑖𝑖 = 𝛽𝛽1 + 𝛽𝛽2 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖 + 𝛽𝛽3 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝑖𝑖 + 𝛽𝛽4 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖 � 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝑖𝑖 + 𝑢𝑢𝑖𝑖
5
7.4 Dummy variables and structural break
Structural break may be studied with the Chow test or with dummy
variables. For example, to analyse the differences between genders:
CHOW TEST
MEN: 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑌𝑌𝑖𝑖 = 𝛽𝛽1,I + 𝛽𝛽2,I 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖 + 𝑢𝑢𝑖𝑖,I Sample size: 𝑛𝑛1 𝑆𝑆𝑆𝑆𝑆𝑆𝐼𝐼
WOMEN: 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑌𝑌𝑖𝑖 = 𝛽𝛽1,II + 𝛽𝛽2,II 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖 + 𝑢𝑢𝑖𝑖,II Sample size: 𝑛𝑛2 𝑆𝑆𝑆𝑆𝑆𝑆𝐼𝐼𝐼𝐼
ALL: 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑌𝑌𝑖𝑖 = 𝛽𝛽1 + 𝛽𝛽2 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝑖𝑖 + 𝑢𝑢𝑖𝑖 Sample size: 𝑛𝑛1 + 𝑛𝑛2 = 𝑛𝑛 𝑆𝑆𝑆𝑆𝑆𝑆
H0 : β1,I = β1,II
β2,I = β2,II ▶ There are NOT differences between genders
H1 : H0 not true ▶ There are differences between genders
6
DUMMY VARIABLES
Now our model will be:
SALARYi = β1 + β2 EDUCi + β3 GENDER i + β4 EDUCi � GENDER i + ui
The sample size is 𝑛𝑛, and GENDER takes value 1 for men, and 0
otherwise. To analyse the differences in salaries between genders:
H0 : β 3 = 0
β4 = 0 ▶ There are NOT differences between genders
H1 : H0 not true ▶ There are differences between genders
𝑆𝑆𝑆𝑆𝑆𝑆𝑅𝑅𝑅𝑅 − 𝑆𝑆𝑆𝑆𝑆𝑆𝐺𝐺𝐺𝐺 ⁄2
~ F2, 𝑛𝑛−4
𝑆𝑆𝑆𝑆𝑆𝑆𝐺𝐺𝐺𝐺 ⁄ 𝑛𝑛 − 4
7
ECONOMETRICS
UNIT 8
1
6.1. Collinearity
2
6.1.1. Consequences of collinearity
3
6.1.2. Detection of collinearity
4
6.1.3. Solutions to collinearity
5
6.2. Heteroscedasticity
6
6.2.1. Consequences of heteroscedasticity
7
6.2.2. Detection of heteroscedasticity
One of the most usual tests for heteroscedasticity is the White test. The
hypotheses are:
H0 : 𝑉𝑉𝑉𝑉𝑉𝑉 𝑢𝑢𝑖𝑖 = 𝜎𝜎 2
H1 : 𝑉𝑉𝑉𝑉𝑉𝑉 𝑢𝑢𝑖𝑖 = 𝜎𝜎𝑖𝑖2