/usr/share/gretl/scripts/ps3-5.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 | # PS3.5 using DATA3-1, for Example 3.9
open data3-1
ols price 0 sqft
# regress sqft against price
ols sqft 0 price
smpl 1 1
# retrieve estimated constant term
genr astar = $coeff(0)
# retrieve estimated slope term
genr bstar = $coeff(price)
# calculate new intercept and slope and print all variables
genr aprime = -astar/bstar
genr bprime = 1/bstar
print astar bstar aprime bprime
|