addons/gig/examples/example1.inp
raw| 1 | # Example n. 1 |
| 2 | |
| 3 | # GARCH(1,1) with Normal conditional distribution, |
| 4 | # no mean regressors. |
| 5 | |
| 6 | |
| 7 | set verbose off |
| 8 | |
| 9 | # Import the gig library. |
| 10 | include gig.gfn |
| 11 | open djclose |
| 12 | rr = 100*ldiff(djclose) |
| 13 | |
| 14 | model = gig_setup(rr) |
| 15 | gig_estimate(&model) |
| 16 | |
| 17 | # Compare with native implementation |
| 18 | garch 1 1 ; rr --nc --robust |
| 19 |