Professional Documents
Culture Documents
Lecture 4-Modified
Lecture 4-Modified
First-stage:
𝑖 = 𝜋ෟ
𝑋1𝑖 = 𝜋1 + 𝜋2 𝑍1𝑖 + 𝜋3 𝑍2𝑖 +𝜋4 𝑊1𝑖 +𝑣𝑖 ➔ 𝑋1 1+𝜋
ෞ2 𝑍11 + 𝜋
ෞ3 𝑍21 + 𝜋
ෞ2 𝑊1𝑖
Second-stage:
𝑖 + 𝛽3 𝑊1𝑖 + 𝜀𝑖
𝑌𝑖 = 𝛽1 + 𝛽2 𝑋1
Gretl codes:
ols x const z1 z1 w1 -- robust
genr x_hat = $yhat (from first stage equation)
To estimate
Gretl codes: