| 1 |
# Example n. 2 |
| 2 |
|
| 3 |
# GARCH(1,1) with Normal conditional distribution, |
| 4 |
# constant and lagged variable as mean regressors |
| 5 |
|
| 6 |
|
| 7 |
set verbose off |
| 8 |
|
| 9 |
include gig.gfn |
| 10 |
open djclose |
| 11 |
rr = 100*ldiff(djclose) |
| 12 |
|
| 13 |
# The regressors should be passed as a list |
| 14 |
# note the separate treatment of AR lags |
| 15 |
list regressors = const |
| 16 |
|
| 17 |
# create the bundle |
| 18 |
bundle model = gig_setup(rr, 1, regressors, null, 1) |
| 19 |
|
| 20 |
# populate the bundle with the estimation results |
| 21 |
gig_estimate(&model) |
| 22 |
|
| 23 |
# Compare with native implementation |
| 24 |
garch 1 1 ; rr const rr(-1) --robust |
| 25 |
|