Small 2-country model - problem with the 2nd order approxima

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.

Small 2-country model - problem with the 2nd order approxima

Postby rafal.raciborski » Thu Jan 27, 2011 10:25 am

Hi,

We have a small 2-country open economy model, which we need to solve with the 2nd order approximation (see the files attached). The 1st order approximation works just fine (it seems), but the 2nd order one does not accomplish. Any suggestion on what's going on?

Thanks in advance for any hint.

Best,
Rafal
Attachments
simple_steadystate.m
(1.8 KiB) Downloaded 153 times
simple.mod
(2.43 KiB) Downloaded 216 times
rafal.raciborski
 
Posts: 2
Joined: Thu Jan 27, 2011 10:09 am

Re: Small 2-country model - problem with the 2nd order approxima

Postby jpfeifer » Thu Jan 27, 2011 12:21 pm

Could you specify what the problem is?
Note that for second order approximations, you might need to enable pruning to get finite simulated moments:
Code: Select all
stoch_simul(periods=2000,order=2,irf=0,pruning);
------------
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: Small 2-country model - problem with the 2nd order approxima

Postby rafal.raciborski » Thu Jan 27, 2011 1:40 pm

Thanks. The problem was indeed to get finite simulated moments with the 2nd order approximation. Actually it was not as simple as you suggested:

Code: Select all
stoch_simul(periods=2000,order=2,irf=0,pruning);

does NOT work (Dynare v. 4.1.3). But we took the hint and followed the instructions in:

http://www.dynare.org/phpBB3/viewtopic.php?f=2&t=2392

It appears to work now. Thanks again.
rafal.raciborski
 
Posts: 2
Joined: Thu Jan 27, 2011 10:09 am

Re: Small 2-country model - problem with the 2nd order approxima

Postby jpfeifer » Thu Jan 27, 2011 3:04 pm

Sorry, but if you use the current Dynare snapshot (which I did), pruning is already implemented.
------------
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: Google [Bot] and 8 guests