Mixing determininistic 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.

Mixing determininistic and stochastic shocks

Postby AnitaYang » Mon Aug 30, 2010 6:21 pm

Hi,

I try to mix determininistic and stochastic shocks when my equations depend on some exogenous variable (say, world interest rate.)

I declare
Code: Select all
varexo_det lcstar lpistar lrstar;
varexo nua nug;


and have the block of shock as follows
Code: Select all
shocks;   
var nua; stderr 0.01;
var nug; stderr 0.01;
var lcstar;
periods 1:9;
values -0.15;
var lpistar;
periods 1:9;
values 0.01;
var lrstar;
periods 1:9;
values 0.02;
end;


It seems to me that there are five exogenous variables defined in the .mod file. However, I got the following error message:
-----
??? Attempted to access x(3); index out of bounds
because numel(x)=2.
-----
It seems that Dynare only recoganize two exogenous variables which are contained in "x" vector. Does anyone know what is wrong in my codes? Thank you.
AnitaYang
 
Posts: 13
Joined: Sun Aug 29, 2010 3:30 am

Re: Mixing determininistic and stochastic shocks

Postby SébastienVillemot » Mon Sep 13, 2010 9:11 am

Hi,

For Dynare there are indeed two exogenous: deterministic exogenous are treated separately.

Please post your MOD file, so that we can determine if your problem is a bug in Dynare or an error from your side.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 8 guests