File: heckit.inp

package info (click to toggle)
gretl 2022c-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 59,552 kB
  • sloc: ansic: 409,074; sh: 4,449; makefile: 3,222; cpp: 2,777; xml: 599; perl: 364
file content (28 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Replicate a couple of Heckit analyses using Mroz's labor-market
# dataset (Econometrica, 1987): Table 22.7 in Greene's Econometric 
# Analysis (5e, 2003) and table 17.1 in Wooldridge's Econometric 
# Analysis of Cross Section and Panel Data (2002).
# 
# Note that Greene's estimates were subject to correction:
# http://pages.stern.nyu.edu/~wgreene/Text/Errata/ERRATA5.htm
# Our estimates should agree with the corrected version.

open mroz87.gdt

# generate quadratic terms and KIDS dummy
series EXP2 = AX^2
series WA2 = WA^2
series KIDS = (KL6+K618)>0

# Greene's specification
list X = const AX EXP2 WE CIT
list Z = const WA WA2 FAMINC KIDS WE
heckit WW X ; LFP Z --two-step 
heckit WW X ; LFP Z 

# Wooldridge's specification
series NWINC = FAMINC - WW*WHRS
series lww = log(WW)
list X = const WE AX EXP2
list Z = X NWINC WA KL6 K618
heckit lww X ; LFP Z --two-step