simul: control values by parameter

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

simul: control values by parameter

Postby DynareUser » 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.
DynareUser
 
Posts: 2
Joined: Mon May 30, 2011 9:45 am

Re: simul: control values by parameter

Postby DynareUser » Wed Jun 01, 2011 10:33 am

Hi,
values(shock_size); does the trick.
DynareUser
 
Posts: 2
Joined: Mon May 30, 2011 9:45 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests