Stochastic simulation

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.

Stochastic simulation

Postby kwaner » Sat Apr 28, 2012 12:19 am

Suppose I perform stochastic simulation of a DSGE model as:

stoch_simul(periods=200,irf=40,order=2) Y C;

Dynare produces the moments as a standard output. Now, I compute the moments from the simulated Y and C series. These two moments seem to be different. Any ideas?
kwaner
 
Posts: 10
Joined: Wed Jun 01, 2011 3:05 pm

Re: Stochastic simulation

Postby kyri82 » Tue May 01, 2012 8:52 am

Dynare drops by default the first 100 observations. Thus if you are computing the moments over the whole generated sample they will be different. Check the options for stoch_simul in the manual (page 33).

To see how many observations have been dropped type: options_.drop
To alter the number of observations dropped do: stoch_simul(periods=200,irf=40,order=2, drop=INTEGER)

Hope it helps
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France

Re: Stochastic simulation

Postby ahnulxy » Thu May 10, 2012 8:13 am

kyri82 wrote:Dynare drops by default the first 100 observations. Thus if you are computing the moments over the whole generated sample they will be different. Check the options for stoch_simul in the manual (page 33).

To see how many observations have been dropped type: options_.drop
To alter the number of observations dropped do: stoch_simul(periods=200,irf=40,order=2, drop=INTEGER)

Hope it helps

It really helps! Thanks very much!
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests