Page 1 of 1

Generating N different datasets from simulation

PostPosted: Tue Aug 25, 2015 10:11 am
by Philipp
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

Re: Generating N different datasets from simulation

PostPosted: Tue Aug 25, 2015 10:13 am
by jpfeifer
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

Re: Generating N different datasets from simulation

PostPosted: Tue Aug 25, 2015 10:48 am
by Philipp
thanks a lot!