Seeding stochastic simulations

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.

Seeding stochastic simulations

Postby etanner » Thu Jul 13, 2006 11:54 am

Hello,
I would like to know how to ensure that the series of random terms that come from a stochastic simulation (stoch_simul) will be the same in different runs.
In other programs (i.e. rats) this is ensured by specifying a specific value for a seed (i.e. seed = xxxxx).
In MATLAB, this function is apparently called "state" (i.e. state=xxxx).
I tried the MATLAB "state" command in a DYNARE program. The command DID compile --- but the desired result was not obtained, since sucessive runs of a same stochastic simulation program (essentiall Collard/Julliard's '03 example) yielded different realizations of the randomly genrated shocks.
Is this solvable?
Thanks
Evan in DC
et
etanner
 
Posts: 1
Joined: Thu Jul 13, 2006 11:46 am
Location: Washington DC

Postby MichelJuillard » Fri Jul 14, 2006 4:05 pm

look at option simul_seed in the manual.

The matlab command is randn('state', ...)

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

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