addons/SVAR/examples/Traditional/identification.inp
raw| 1 | set verbose off |
| 2 | |
| 3 | include SVAR.gfn |
| 4 | open sw_ch14.gdt |
| 5 | |
| 6 | series infl = 400*ldiff(PUNEW) |
| 7 | rename LHUR unemp |
| 8 | |
| 9 | list X = unemp infl |
| 10 | list Z = const |
| 11 | |
| 12 | Mod = SVAR_setup("C", X, Z, 3) |
| 13 | SVAR_restrict(&Mod, "C", 1, 2) |
| 14 | |
| 15 | # Now check for identification |
| 16 | scalar is_identified = SVAR_ident(&Mod) |
| 17 | if is_identified |
| 18 | printf "Whew!\n" |
| 19 | else |
| 20 | printf "Blast!\n" |
| 21 | endif |
| 22 | |
| 23 | # Re-check, verbosely |
| 24 | scalar is_identified = SVAR_ident(&Mod, 1) |