Debian Codegraph @

tests/exogenous-observed-variables/preprocessor.mod

raw
1 var y z;
2
3 varexo e x u;
4
5 parameters rho;
6
7 rho = .9;
8
9
10 model(linear);
11 y = z + e ;
12 z = rho*z(-1) + u;
13 end;
14
15 shocks;
16 var e; stderr .01;
17 var u; stderr .01;
18 end;
19
20 varobs y;
21
22 varexobs x;
23
24 assert(length(options_.varobs)==1);
25 assert(length(options_.varexobs)==1);
26 assert(length(options_.varobs_id)==1);
27 assert(length(options_.varexobs_id)==1);
28 assert(options_.varobs_id==1);
29 assert(options_.varexobs_id==2);
30 assert(options_.varobs{1}=='y');
31 assert(options_.varexobs{1}=='x');
32