How to set seed for different stochastic simulations, Octave

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.

How to set seed for different stochastic simulations, Octave

Postby MichaelCreel » Thu Oct 13, 2011 12:09 pm

I'm trying out v4.2.2, which differs from the v4.1.3 that I was using previously in that stochastic simulations always produce the same sequence of results, by default. I am doing some simulation based estimation, and need many different simulated sequences. I'm also using Octave, not Matlab. Ideally, would like Dynare to use Octave's random number state, but I don't quite see how to do that. Otherwise, some other method of getting differing sequences would be ok. Any help would be greatly appreciated.
Michael
MichaelCreel
 
Posts: 25
Joined: Tue Sep 28, 2010 12:11 pm

Re: How to set seed for different stochastic simulations, Oc

Postby SébastienVillemot » Thu Oct 27, 2011 3:35 pm

In Dynare 4.2 there is a new command called "set_dynare_seed" which is used for that purpose. It is (very briefly) documented in the reference manual.

Hope this helps,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests