How to replicate 100 times an RBC model?

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 replicate 100 times an RBC model?

Postby accolleyd » Sat Aug 30, 2014 2:20 pm

Hi, I am trying to replicate 100 times a basic RBC economy as follows.

for j=1:100,
stoch_simul(periods=128, hp_filter=1600,IRF=0,noprint);
end;

I have got complex numbers in filtering the simulated series and computing the mean of my summary statistics. This is due to the fact that dynare has generated negative values for investment.
I would appreciate if you could suggest another way of writing the loop to avoid these problems. Regards
accolleyd
 
Posts: 7
Joined: Tue Apr 15, 2008 3:00 am
Location: Quebec

Re: How to replicate 100 times an RBC model?

Postby jpfeifer » Sat Aug 30, 2014 2:24 pm

See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5225
Negative values should not be an issue unless you take logs of these values and I don't see why you are doing this.
------------
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

Re: How to replicate 100 times an RBC model?

Postby accolleyd » Sat Aug 30, 2014 8:44 pm

Thanks for your reply, Johannes. The link you suggested is useful.
Indeed I took logs of the series Dynare simulated in order to compute myself the relative standard deviations of the filtered series. That is why I'm getting complex numbers in the averages.
accolleyd
 
Posts: 7
Joined: Tue Apr 15, 2008 3:00 am
Location: Quebec

Re: How to replicate 100 times an RBC model?

Postby jpfeifer » Sat Aug 30, 2014 9:02 pm

Then you should set up your model in loglinear form (e.g. using an exp()-transformation or the loglinear option).
------------
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

Re: How to replicate 100 times an RBC model?

Postby accolleyd » Sat Aug 30, 2014 11:09 pm

Thanks, dear
accolleyd
 
Posts: 7
Joined: Tue Apr 15, 2008 3:00 am
Location: Quebec


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests

cron