Time required to generate observations in Dynare 4

As Dynare 4 is now the main version, this forum is now closed. Please, post
on the Dynare Help forum
Forum rules
As Dynare 4 is the current Dynare version, there forum is now close. Post new question in the Dynare Help Forum.

Time required to generate observations in Dynare 4

Postby Ansgar » Sat Aug 16, 2008 4:51 pm

Dear all,
I have been wondering for a long time about the following. When I simulate my model over 200000 periods in order to generate observations to calculate the sample moments, it takes ages in Dynare 4, about 2 hours. By contrast, in Dynare 3, it takes 4 minutes. I am solving the model using the second order approximation to the policy function.
Did any of you encounter the same thing?
Best,
Ansgar
Ansgar Rannenberg
IMK
Tel.: +49/211/7778113
Ansgar
 
Posts: 46
Joined: Tue Jun 26, 2007 11:35 am
Location: Düsseldorf

Re: Time required to generate observations in Dynare 4

Postby StephaneAdjemian » Mon Sep 01, 2008 1:40 pm

Hi Ansgar,

The difference between dynare v3 and v4 is that the last version simulates (by default) fifty times the same model with 200000 periods... I guess this is not what you want (but this may be useful in some cases). The problem was corrected under dynare 3 but not under version 4. The problem is that we use the same variable (options_.replic equal to 50 by default) for different purposes... We will correct this bug as soon as possible.

Meanwhile, if you are not interested in IRFs, a workaround is to add the following options in the stoch_simul : replic = 1. If you are also interested in IRFs with a second order approximation you have to call again stoch_simul with options (say) irf=40 and replic=50.

Best,
Stéphane.


Ansgar wrote:Dear all,
I have been wondering for a long time about the following. When I simulate my model over 200000 periods in order to generate observations to calculate the sample moments, it takes ages in Dynare 4, about 2 hours. By contrast, in Dynare 3, it takes 4 minutes. I am solving the model using the second order approximation to the policy function.
Did any of you encounter the same thing?
Best,
Ansgar
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Postby Ansgar » Tue Sep 30, 2008 2:20 pm

Hey Stephane,
many thanks for your reply! I have used the replic option and it now works in acceptable time!
Best,
Ansgar
Ansgar Rannenberg
IMK
Tel.: +49/211/7778113
Ansgar
 
Posts: 46
Joined: Tue Jun 26, 2007 11:35 am
Location: Düsseldorf


Return to Dynare version 4

Who is online

Users browsing this forum: No registered users and 2 guests