/usr/share/gretl/scripts/ps9-10.inp is in gretl-common 2017d-3build1.
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 | open data9-3
# Model A
ols 2 0 3
# Model B
add 4 6 7 8
# save residuals as ut
genr ut = $uhat
# Model C
omit 7 8
# autocorrelation test on Model C
modtest -a
# correlogram of ut
corrgm ut
# estimate by corc
ar1 2 0 3 4 6 7 8
# estimate by hilu
ar1 2 0 3 4 6 7 8 --hilu
# general order ar
ar 1 3 4 ; 2 0 3 4 6 7 8
# obtain forecasts
fcast 1989.1 1990.4 yf
# set sample range
smpl 1989.1 1990.4
# print forecasts
print 2 yf
|