Trouble mixing deterministic and stochastic shocks

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.

Trouble mixing deterministic and stochastic shocks

Postby AnaP » Fri Aug 24, 2007 3:30 pm

I have two types of shocks in my model: stochastic (AR(1) processes) and deterministic (an i.i.d. shock).

I was wondering whether there is a way to feed just the deterministic shock through a .mat file (shocks_file ??) *while* letting Dynare compute the stochastic shocks for me.

The reason why I don't want to feed all the shocks from an exogenous file is because I want to do stochastic simulations.

The deterministic shock (eN) is just an i.i.d. shock that is equal to 0.1086 in period 1 and zero from then onwards. I tried typing it in as:

Code: Select all
var // list of all the endogenous variables (irrelevant for my question)
varexo  eA eg ;
varexo_det eN;
parameters  ANOss gNOss ro_A ro_g sigma_A sigma_g //among others
. . .
model;
log(ANO) = (1-ro_A)*log(ANOss) + ro_A*log(ANO(-1)) + eA;
log(gNO) = (1-ro_g)*log(gNOss) + ro_g*log(gNO(-1)) + eg;
//among other equations
end;

. . .
shocks;
var eA = sigma_A^2;
var eg = sigma_g^2;
var eN;
periods 1;
values 0.1086;
end;


but I got the following error message:

??? Attempted to access k(0); index must be a positive integer or logical.


Any suggestions?

THANKS!

-AP
AnaP
 
Posts: 1
Joined: Fri Aug 24, 2007 2:36 pm

Postby ripatti » Thu Mar 27, 2008 2:20 pm

modify as follows:
periods 0:1;
ripatti
 
Posts: 59
Joined: Mon Jan 16, 2006 6:28 am
Location: Helsinki


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests