File: ps10-6.inp

package info (click to toggle)
gretl 2016d-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 48,620 kB
  • ctags: 22,779
  • sloc: ansic: 345,830; sh: 4,648; makefile: 2,712; xml: 570; perl: 364
file content (16 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# PS10.6, for Example 10.5 for the Dickey-Fuller test
open data9-2 
genr time
# generate log of money supply
genr Y = ln(M)
# generate delta Y
genr DY = diff(Y)
# lag DY once
genr Y1 = Y(-1)
# delta Y(-1)
genr DY1 = DY(-1)
# reset starting obs to omit two observations
smpl 1962 ;
# estimate unrestricted model U
ols DY const time Y1 DY1
omit time Y1