Unfixing the Random seed
Posted: Mon May 05, 2014 3:51 pm
Hi,
I use the simulation coming from a .mod file as the DGP.
I need to do a MonteCarlo experiment, where I need to simulate the model M times.
Obviously, each of the M simulations should be different. Since now Dynare fixes automatically the seed for the RNG, I cannot see how to do it.
I have used the command set_dynare_seed('clock') and also I tried to use set_dynare_seed(randi(1000000,1)) (to give as a seed a random integer every time), but I do not obtain simulations that are different.
Techincally, I run a for loop calling each time the .m file associated with the .mod file that solves and simulate the model I am interested in, and for each iteration of the loop I store the simulated variable.
Thanks for your help
I use the simulation coming from a .mod file as the DGP.
I need to do a MonteCarlo experiment, where I need to simulate the model M times.
Obviously, each of the M simulations should be different. Since now Dynare fixes automatically the seed for the RNG, I cannot see how to do it.
I have used the command set_dynare_seed('clock') and also I tried to use set_dynare_seed(randi(1000000,1)) (to give as a seed a random integer every time), but I do not obtain simulations that are different.
Techincally, I run a for loop calling each time the .m file associated with the .mod file that solves and simulate the model I am interested in, and for each iteration of the loop I store the simulated variable.
Thanks for your help