stoch_simul seeding problems

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.

stoch_simul seeding problems

Postby cjones » Mon Jun 06, 2011 11:54 pm

Hi everyone

I'm new to the forums and reasonably new to Dynare. Just wanted to mention: When I try to simulate data from a model with stoch_simul(periods=x), it seems as though Dynare is producing the same set of shocks each time I simulate. You can, however, explicitly change the seed to generate different shocks.

I know this was different in earlier versions of Dynare -- each simulation generated different series -- and it seemed like a pretty important difference, so I thought I'd mention it in case it is a bug.

.mod file used is attached (Ireland, 2004). I'm using Dynare 4.2.1.

Thanks,
Callum
Attachments
ireland.mod
(909 Bytes) Downloaded 143 times
cjones
 
Posts: 1
Joined: Wed Jun 01, 2011 4:56 am

Re: stoch_simul seeding problems

Postby jpfeifer » Tue Jun 07, 2011 5:27 pm

Hi, it's not a bug, it's a feature that has been introduced. Fixing the seed assures that the simulations are by default comparable between different runs of Dynare. It also means that someone else who has your mod-file obtains exactly the same results as you do.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests