Page 1 of 1

simul: control values by parameter

PostPosted: Mon May 30, 2011 9:56 am
by DynareUser
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.

Re: simul: control values by parameter

PostPosted: Wed Jun 01, 2011 10:33 am
by DynareUser
Hi,
values(shock_size); does the trick.