Debian Codegraph @

addons/gig/examples/example3.inp

raw
1 # Example n. 3
2
3 # GJR(1,1) with Student's t conditional distribution,
4 # constant as mean regressor and minimal output.
5 # Also show how to retrieve stuff from the estimated model
6
7 set verbose off
8 include gig.gfn
9
10 open djclose
11 rr = 100*ldiff(djclose)
12 bundle model = gig_setup(rr, 3, const)
13 gig_set_dist(&model, 1)
14 gig_estimate(&model)
15
16 # Do some post-estimation work
17
18 # Fitted coefficients
19 matrix cf = model.coeff
20
21 # Variance-covariance matrix
22 matrix V = model.vcv
23
24 # Residuals and conditional variance
25 series u = model.uhat
26 series h = model.h
27 series e = model.stduhat
28 summary u e h
29
30 # Graph residuals and conditional sd
31 gig_plot(&model)
32
33
34