linear vs nonlinear: same shape but different magnitude

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.

linear vs nonlinear: same shape but different magnitude

Postby mindint » Thu Jan 22, 2015 9:19 am

Hi, I solved a model using the nonlinear method in dynare, then log-linearized the same model by hand and solved it using the linear method in dynare. Given the same parameter values, the shapes of the irfs are the same, but the magnitudes are different.

Attached is the model setup, codes and figures. The irfs generated by two methods are proportional, but the proportions for different variables are different.

Why is there such discrepancy and which method is reliable? Thanks!
Attachments
attachment.zip
(33.99 KiB) Downloaded 58 times
mindint
 
Posts: 19
Joined: Thu Jan 22, 2015 9:08 am

Re: linear vs nonlinear: same shape but different magnitude

Postby jpfeifer » Thu Jan 22, 2015 1:07 pm

Your nonlinear version results in IRFs as linear deviation from steady state. Your "linear" model in contrast is not "linear" but actually "loglinear", i.e. in percentage deviations. The difference is that in the loglinear one the IRFs are basically scaled with the respective steady state values (Jacobian transformation). This explains the different scale, but same shape. You would get exactly the same if you used an exp() substitution in the nonlinear model. For details, see Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferec ... ations.pdf.
------------
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: linear vs nonlinear: same shape but different magnitude

Postby mindint » Sat Jan 24, 2015 2:56 am

Thank you, professor. Your paper helps a lot. Actually, the irfs will be the same if we add ``loglinear'' option in the stoch_simul command in the nonlinear model.

I have another question asked in the topic ``steady state: solution of multi-nonlinear-equation system '', hope your could have a look. Thanks!
mindint
 
Posts: 19
Joined: Thu Jan 22, 2015 9:08 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests