How to use dynasave within Stochastic Simulations?
Posted: Wed Jan 28, 2009 7:26 pm
Hello everyone,
I was wondering if anyone knows how to use dynasave or any other method to save the results from stochastic simulations.
What I want is to run several simulations (let's say 100 simulations for a sample size of 1055, dropping the first 1000) and compute averaged moments for these simulations (as it is done in the business cycles literature).
I have tried to put dynasave within the following loop, but it doesn't work.
@#for i in 1:100
stoch_simul(periods=1055, drop=1000, nograph) gdp;
dynasave mydata;
@#endfor
Any help would be appreciated. Thanks.
I was wondering if anyone knows how to use dynasave or any other method to save the results from stochastic simulations.
What I want is to run several simulations (let's say 100 simulations for a sample size of 1055, dropping the first 1000) and compute averaged moments for these simulations (as it is done in the business cycles literature).
I have tried to put dynasave within the following loop, but it doesn't work.
@#for i in 1:100
stoch_simul(periods=1055, drop=1000, nograph) gdp;
dynasave mydata;
@#endfor
Any help would be appreciated. Thanks.