| 1 |
|
| 2 |
set verbose off |
| 3 |
|
| 4 |
# Import the gig library. |
| 5 |
include gig.gfn |
| 6 |
|
| 7 |
# open the sample file and compute returns |
| 8 |
open djclose |
| 9 |
rr = 100*ldiff(djclose) |
| 10 |
|
| 11 |
open b-g |
| 12 |
rr = Y |
| 13 |
list X = const |
| 14 |
|
| 15 |
models = {1, 3, 6, 7} |
| 16 |
|
| 17 |
# loop over various specifications |
| 18 |
set stopwatch |
| 19 |
loop i = 1 .. 4 # models |
| 20 |
mod = gig_setup(rr, models[i], X) |
| 21 |
mod.vcvtype = 2 |
| 22 |
loop d = 0 .. 4 #distributions |
| 23 |
gig_set_dist(&mod, d) |
| 24 |
gig_estimate(&mod) |
| 25 |
endloop |
| 26 |
endloop |
| 27 |
printf "Elapsed time = %g seconds\n", $stopwatch |