This file is indexed.

/usr/share/gretl/scripts/misc/heckit.inp is in gretl-common 2016a-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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