/usr/share/gretl/scripts/ps6-5.inp is in gretl-common 1.9.14-2.
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 | # PS6.5 for Example 6.4
open data6-3
genr C1 = Cons(-1)
# print C1 to see how it is stored internally
print Cons C1
# generate DY(t) - DY(t-1) using the diff function
genr DiffI = diff(DI)
# print DI and DiffI to see how they are stored internally
print DI DiffI
# note that ols starts in 1949 because C1 and DiffI are
# undefined for 1948
ols Cons 0 C1 DiffI
|