Generating N different datasets from 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.

Generating N different datasets from simulation

Postby Philipp » Tue Aug 25, 2015 10:11 am

Dear Dynare users,

what is the most efficient way to do the following:
I want to simulate a basic RBC model for 200 periods and would like to back out series for labor productivity, hours and the relative price of investment to perform a Monte Carlo analysis.
I use as command

Code: Select all
stoch_simul(order=1,drop=100,periods=280);


and would like to generate 2'000 different datasets. I assume that looping over Dynare would take forever, there's got to be a more efficient way to do that no?
Best,
Philipp
Philipp
 
Posts: 36
Joined: Mon Apr 18, 2011 9:01 pm
Location: State Secretariate for Economic Affairs

Re: Generating N different datasets from simulation

Postby jpfeifer » Tue Aug 25, 2015 10:13 am

Use the simul_replic option. For an example on what you want to do, see https://github.com/JohannesPfeifer/DSGE_mod/tree/master/Hansen_1985
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Generating N different datasets from simulation

Postby Philipp » Tue Aug 25, 2015 10:48 am

thanks a lot!
Philipp
 
Posts: 36
Joined: Mon Apr 18, 2011 9:01 pm
Location: State Secretariate for Economic Affairs


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests