simulating more periods than specified

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.

simulating more periods than specified

Postby mjb » Fri Mar 12, 2010 9:03 pm

I specify the following commands for the simulation of my model

stoch_simul(periods=1000, order=1, simul_seed=100, irf = 0);

However, Dynare simulates 1003 periods of the endogenous variables and 1002 periods of the exogenous variables. Why is this and how does the timing of the shocks and endogenous variables line up?

Thanks for your help with this simple question.
mjb
 
Posts: 1
Joined: Fri Mar 12, 2010 8:58 pm

Re: simulating more periods than specified

Postby SébastienVillemot » Wed Mar 17, 2010 4:13 pm

Hi,

Your model probably contains one lag (on endogenous variables), so there must be one period of initial conditions before the simulation starts.

So the first date of the exogenous vector is date 1, and the first date of the endogenous vector is date 0.

So there are truly 1002 periods of simulation, and 1 period of initial conditions.

The fact that there are 2 extra simulation periods is a small bug of Dynare, but without real consequences since you can just truncate the simulations.

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 13 guests