Replicating a paper from JEDC

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.

Replicating a paper from JEDC

Postby Broderick » Mon Sep 26, 2016 3:54 am

Dear forum members,

I'm trying to replicate a version of the model contained in this paper:
http://www.sciencedirect.com/science/article/pii/S0165188914000797

Dynare can't find the correct steady state, despite the fact that the code contains a steady state block
(Error using print_info (line 72). The steadystate file did not compute the steady state)

I thought I had made a mistake somewhere but I carefully checked my equations and steady state conditions. If somebody could help me understand what I'm doing wrong, I'd be most grateful.
I attach the .mod file and a pdf with SS conditions. In the code, I also "flag" the various model equations using the numbers in the paper.

Kind regards,
Attachments
steady_state.pdf
Steady state calculations
(60.34 KiB) Downloaded 126 times
DutchPap_NLIN_v5.mod
Dynare code
(3.78 KiB) Downloaded 70 times
Broderick
 
Posts: 2
Joined: Mon Sep 26, 2016 3:41 am

Re: Replicating a paper from JEDC

Postby jpfeifer » Sat Oct 01, 2016 7:28 am

In the steady_state_model-block in
Code: Select all
lambda=(1-v*b)/(c*(1-v));

it should be
Code: Select all
1-v*beta
, not
Code: Select all
1-v*b

to conform to the model block
------------
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: Replicating a paper from JEDC

Postby Broderick » Thu Oct 06, 2016 2:25 am

Dear prof. Pfeifer,

thank you very much for your help. If I correct the mistake you point out, the situation improves but I still get error messages. Is this just a numerical "quirk" that I'll need to override (how?) or is it a flag of substantial problems remaining?

(More in detail: Matlab/Dynare still say that Dynare is not computing the steady state, but the 2 non-zero residuals in the system look very small.)

Thanks again and best regards,
Attachments
DutchPap_NLIN_v5.mod
Updated version of mod file
(3.78 KiB) Downloaded 64 times
Broderick
 
Posts: 2
Joined: Mon Sep 26, 2016 3:41 am

Re: Replicating a paper from JEDC

Postby jpfeifer » Thu Oct 06, 2016 6:14 am

Your model does not seem to have strong nonlinearities in the steady state computation. Therefore, pure numerical problems are highly unlikely. An analytical steady state should solve the model with residuals in the range of 10^10 or so. This suggests that there is either still a mistake in your steady state computation or the associated model equations.
------------
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 6 guests