simulated data

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.

simulated data

Postby Lara » Tue Jan 19, 2010 8:19 pm

Hi,
I am looking for the simulated data. In the mod file I type stoch_simul(periods=1000,irf=40); I obtain the moments of simulated variables in the command window. But from which series are these moments calculated?
When I take the first series in the oo_.endo_simul (the first row) and I calculate, let’s say, the standard deviation, this value is different from the one I see in the command window for the same series. Could you pls me explain where I can get the simulated data?

Thanks in advance!
Lara
 
Posts: 33
Joined: Tue Jan 19, 2010 7:11 pm

Re: simulated data

Postby SébastienVillemot » Thu Jan 21, 2010 1:49 pm

Hi

The simulated data are indeed in oo_.endo_simul, as explained on:
http://www.dynare.org/manual/re26.html

The point is that some observations are dropped at the beginning of the simulation (100 by default). And you also need to take into account the number of lags in your model (stored in M_.maximum_lag).

So the formula for the mean of the 1st variable is:
Code: Select all
mean(oo_.endo_simul(1, options_.drop+M_.maximum_lag+1:end))


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

Re: simulated data

Postby Lara » Fri Jan 22, 2010 6:36 pm

Dear Sebastien,
many thanks!
Cheers,
Lara
 
Posts: 33
Joined: Tue Jan 19, 2010 7:11 pm


Return to Dynare help

Who is online

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