simul: control values by parameter
Posted: Mon May 30, 2011 9:56 am
Hi,
is it possible to run a deterministic simulation in which the values of the shock are pre-specified by a parameter?
The relevant piece of code that works perfectly is:
shocks;
var abc;
periods 1:2 ;
values 1 ;
If I introduce a parameter <shock_size> and set <shock_size=1;> and then have
shocks;
var abc;
periods 1:2 ;
values shock_size;
I get the following error message:
ERROR: modelfile.mod:1437.9-16: syntax error, unexpected NAME
I am using 4.2.0 on a mac. I tested the code on a windows machine. Same problem.
Can anybody help?
Many thanks in advance.
is it possible to run a deterministic simulation in which the values of the shock are pre-specified by a parameter?
The relevant piece of code that works perfectly is:
shocks;
var abc;
periods 1:2 ;
values 1 ;
If I introduce a parameter <shock_size> and set <shock_size=1;> and then have
shocks;
var abc;
periods 1:2 ;
values shock_size;
I get the following error message:
ERROR: modelfile.mod:1437.9-16: syntax error, unexpected NAME
I am using 4.2.0 on a mac. I tested the code on a windows machine. Same problem.
Can anybody help?
Many thanks in advance.