Page 1 of 1

always genenrate same series of simulated data

PostPosted: Thu Dec 22, 2016 2:32 am
by ZBCPA
Dear Johannes,

I calibrate the std/persistence of shocks then run simulation of the model using code
Code: Select all
stoch_simul(orde=1,periods=500)
. Then I got 500 observations. I find that each time I run this process, it always generates exactly same 500 observations. I am a little confused since all shocks are i.i.d , does that mean in different simulation shocks values are randomly picked and should be different from each other in different simulation?

Kind regards,
Huan

Re: always genenrate same series of simulated data

PostPosted: Thu Dec 22, 2016 7:59 am
by jpfeifer
For replicability, newer Dynare version set the seed of the random number generator. If you want different draws, use the
Code: Select all
set_dynare_seed

command (see the manual)