Negative paths for forecasted variables

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.

Negative paths for forecasted variables

Postby marcio_fr » Thu May 18, 2017 4:15 am

Hi,

I estimate a DSGE model using bayesian statistic and asked for forecasting the endogenous variables. The variables are defined in level, but some of them display negative forecasted paths - like taxes, governmental expenditures, and even the GNP. What could be the reason to this?

Best regards, Márcio.
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Negative paths for forecasted variables

Postby jpfeifer » Thu May 18, 2017 7:00 am

There could be a lot of reasons: forecasts being in deviations from the mean, unhandled trends and constants, etc. Without the files, it is hard to tell.
------------
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: Negative paths for forecasted variables

Postby marcio_fr » Thu May 18, 2017 1:55 pm

Attached to the message are the script, data and some figures with convergence diagnóstics and forecasting. The data were detrended, using hp filter. Thanks for your help.
Attachments
nk_stn2_3.mod
(27.67 KiB) Downloaded 51 times
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Negative paths for forecasted variables

Postby marcio_fr » Thu May 18, 2017 2:02 pm

Attached to the message are the script, data and some figures with convergence diagnóstics and forecasting. The data were detrended, using hp filter. Thanks for your help.
Attachments
nk_stn2_3.mod
(27.67 KiB) Downloaded 47 times
data_and_figures.rar
(748.36 KiB) Downloaded 53 times
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Negative paths for forecasted variables

Postby jpfeifer » Thu May 18, 2017 3:11 pm

Your data is not mean 0 and therefore surely not HP-filtered. In the model for the starting values Y has mean 2.3, while the data mean is 1.0005. The estimation cannot properly handle this (only by pushing to a unit root). You can see this in the
Code: Select all
shock_decomposition

graphs as well
------------
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: Negative paths for forecasted variables

Postby marcio_fr » Fri May 19, 2017 1:59 am

So, even if the model isn't log-linearized, the data needs to have mean 0? But in this case, some of the observations will show negative values.
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Negative paths for forecasted variables

Postby jpfeifer » Mon May 22, 2017 5:56 pm

That is not what I am saying. But if you decide to leave the constant in the model and the data, they must be consistent. You cannot have data that has mean 100 and tell estimation that this data corresponds to a variable that has mean 1. Regarding the "negative" values: demeaned data have the interpretation as fluctuations around the mean/trend. Negative values then correspond to the data being below the mean and are by construction desired.
In a nutshell, your observation equation is wrong. See Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests