Debian Codegraph @

addons/SVAR/examples/Traditional/restr_example.inp

raw
1 /*
2 Script demostrating how the function SVAR_restrict
3 handles redundant or contradictory constraints
4 */
5
6 include SVAR.gfn
7
8 # set up a fake dataset, just for the example
9 nulldata 20
10 setobs 1 1 --special-time-series
11 series x = normal()
12 series y = normal()
13 list X = y x
14
15 ccc = SVAR_setup("C", X, const, 2)
16 SVAR_restrict(&ccc, "C", 1, 2)
17 # redundant
18 SVAR_restrict(&ccc, "C", 1, 2)
19 # inconsistent
20 SVAR_restrict(&ccc, "C", 1, 2, 1)
21
22 # print out the constraints matrix
23 Rd = ccc.Rd1
24 print Rd