Debian Codegraph @

addons/SVAR/examples/Traditional/simple_C.inp

raw
1 set verbose off
2 include SVAR.gfn
3 open sw_ch14.gdt
4
5 series infl = 400*ldiff(PUNEW)
6 rename LHUR unemp
7
8 list X = unemp infl
9 list Z = const
10
11 Mod = SVAR_setup("C", X, Z, 3)
12 Mod.horizon = 36
13 SVAR_restrict(&Mod, "C", 1, 2)
14
15 set stopwatch
16 SVAR_estimate(&Mod)
17 printf "Time (Cmodel) = %g\n", $stopwatch
18
19 fevdmat = FEVD(&Mod)
20 print fevdmat
21 IRFplot(&Mod, 1, 1)
22 IRFsave("simple_C_11_noboot.pdf", &Mod, 1, 1)
23
24 set stopwatch
25 bfail = SVAR_boot(&Mod, 1024, 0.90)
26 printf "Number of failed bootstrap iterations = %d, Time (bootstrap) = %g\n", \
27 bfail, $stopwatch
28
29 gpbuild Plots
30 IRFplot(&Mod, 0, 0)
31 end gpbuild
32
33 gridplot Plots --output=display --width=1200
34 IRFsave("simpleC.pdf", &Mod, 0, 0) # 0 means "all"