Debian Codegraph @

addons/gig/examples/example5.inp

raw
1 # Example n. 5
2
3 # APARCH(1,1) with GED conditional distribution, constant and the lagged
4 # variable as mean regressors. Several techniques for standard errors
5 # are compared.
6
7
8 set verbose off
9 include gig.gfn
10
11 open djclose
12 rr = 100*ldiff(djclose)
13
14 mod = gig_setup(rr, 6, const, null, 1)
15 gig_set_dist(&mod, 2)
16
17 # Sandwich (default)
18 gig_estimate(&mod)
19 cf = mod.coeff
20 se_s = mod.stderr
21
22 # Hessian
23 mod.vcvtype = 1
24 gig_estimate(&mod)
25 se_h = mod.stderr
26
27 # OPG
28 mod.vcvtype = 2
29 gig_estimate(&mod)
30 se_o = mod.stderr
31
32 matrix a = cf ~ se_s ~ se_h ~ se_o
33 printf "%12.6f", a