/usr/share/gretl/scripts/ps9-4.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 | # PS9.4, for Example 9.5
open data6-6
genr time
# graph farmpop against year
textplot farmpop year
# linear time trend
ols farmpop 0 time
# generate square of time
genr timesq = time*time
# quadratic time trend
ols farmpop 0 time timesq
# compute growth rate of farmpop
genr gfarmpop=ldiff(farmpop)
# suppress 1948 observation
smpl 1949 1991
# time trend for log difference
ols gfarmpop 0 time
|