Page 1 of 1
Negative paths for forecasted variables
Posted:
Thu May 18, 2017 4:15 am
by marcio_fr
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.
Re: Negative paths for forecasted variables
Posted:
Thu May 18, 2017 7:00 am
by jpfeifer
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.
Re: Negative paths for forecasted variables
Posted:
Thu May 18, 2017 1:55 pm
by marcio_fr
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.
Re: Negative paths for forecasted variables
Posted:
Thu May 18, 2017 2:02 pm
by marcio_fr
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.
Re: Negative paths for forecasted variables
Posted:
Thu May 18, 2017 3:11 pm
by jpfeifer
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
Re: Negative paths for forecasted variables
Posted:
Fri May 19, 2017 1:59 am
by marcio_fr
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.
Re: Negative paths for forecasted variables
Posted:
Mon May 22, 2017 5:56 pm
by jpfeifer
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