/usr/share/gretl/scripts/misc/mrw.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 29 30 31 32 33 34 35 36 37 38 | # Replicate Table 1, "Estimation of the Textbook
# Solow model," in Mankiw, Romer and Weil, QJE 1992
open mrw.gdt
series lny = log(gdp85)
series ngd = 0.05 + (popgrow/100.0)
series lngd = log(ngd)
series linv = log(inv/100.0)
# generate variable for testing Solow restriction
series x3 = linv - lngd
# set sample to non-oil producing countries
smpl nonoil --dummy
model1 <- ols lny const linv lngd
scalar essu = $ess
scalar dfu1 = $df
# restricted regression
ols lny const x3
scalar F1 = ($ess - essu)/(essu/dfu1)
# set sample to the "better data" countries
smpl intermed --dummy --replace
model2 <- ols lny const linv lngd
scalar essu = $ess
scalar dfu2 = $df
# restricted regression
ols lny const x3
scalar F2 = ($ess - essu)/(essu/dfu2)
# set sample to the OECD countries
smpl OECD --dummy --replace
model3 <- ols lny const linv lngd
scalar essu = $ess
scalar dfu3 = $df
# restricted regression
ols lny const x3
scalar F3 = ($ess - essu)/(essu/dfu3)
print F1 F2 F3
# pvalues for test of Solow restriction in each sample
pvalue F 1 dfu1 F1
pvalue F 1 dfu2 F2
pvalue F 1 dfu3 F3
|