Page 1 of 2

Smoothed values for TS not included in the estimation

PostPosted: Mon Aug 24, 2015 3:54 pm
by econ86
Dear Dynare users

I estimate my model using data on 15 macroeconomic variables. There are also other time series that could be used in the estimation (e.g. fiscal variables – public debt, etc.), but they are not at this moment. My question is: how should the smoothed values of, let me say, public debt look like (when public debt is not included in the estimation as observable variable)? Should the smoothed values reflect the actual (historical) data (of course, adjusted/prepared in such a way as if they would be actually used in the estimation)?

Many thanks.

Re: Smoothed values for TS not included in the estimation

PostPosted: Tue Aug 25, 2015 10:19 am
by jpfeifer
They should ideally look simular. This is kind of a tests for overidentifying restrictions. Does your model imply the correct movement for a variable not used to estimate the model?

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 5:59 am
by econ86
Dear

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 6:36 am
by jpfeifer
Check your model. Debt will fluctuate around its steady state in the model. Apparently you set up your model so that the steady state for debt is negative. Depending on your definition it might be correct (a positive debt level in the households budget constraint is their savings, but the governments debt, but you can also define it the other way round).

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 7:17 am
by econ86
Ok. But I'm working with log-linearized model (SS of all variables with a hat is 0, except for some observation equations which contain constant terms). Steady state values/ratios that enter my log-linearized equations are specified within the parameters block of the model. How does Dynare compute smoothed values in this case?

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 7:22 am
by jpfeifer
If your model is linearized and you get one variable to be permanently below steady state, some other shock must be permanently above/below steady state. Most of the time this is due to using a non mean 0 variable for estimating a linear model

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 8:25 am
by econ86
If I understand you correctly, constants in my observation equations (again, public debt is not included as observable variable) affect the smoothed values of public debt, so that they do not fluctuate around the steady state of \hat{public_debt} which is 0 by definition?

Put differently, if I would demean my observable variables, the smoothed values of public debt would fluctuate around 0?

Regards.

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 8:56 am
by jpfeifer
No, what I am saying is: for one variable to be permanently below steady state, you need to have a sequence of shocks that all go in one direction that drive this. Usually, shocks are both positive and negative so that in a longer sample this (almost) never happens. The most common reason you get something like this is that you forgot to correctly account for the mean of one observed variable in the observation equation, thereby forcing Dynare to account for this mean by assuming a sequence of one-sided shocks. There may be other reasons, but this is the most common source of problems.

Re: Smoothed values for TS not included in the estimation

PostPosted: Fri Sep 25, 2015 1:52 pm
by econ86
I have looked at the smoothed shock innovations to see whether they are roughly mean zero - all of them fluctuate around zero (see attachment).

Should I check my observation equations, i.e. if my data are correctly related to the model's concepts?

Re: Smoothed values for TS not included in the estimation

PostPosted: Sat Sep 26, 2015 9:23 am
by jpfeifer
The smoothed shocks look good. Are the other smoothed observed variables mean 0?

Re: Smoothed values for TS not included in the estimation

PostPosted: Sat Sep 26, 2015 11:22 am
by econ86
Yes and no. When estimating the model I use both demeaned and non-demeaned data. For example, data on employment has been demeand prior to estimation and the observation equation is the following:

e_obs = \hat{E}_{t},

while some other variables (output, consumption, etc.) are not demeaned (i.e. they contain a constant term). In this case the observation equations look like:

dy_obs (GDP growth) = ln(mu_z) + \hat{y}_{t} - \hat{y}_{t-1} + \hat{mu_z}_{t}.

I have also checked whether all model's variables are indeed mean 0. So they are, except for some observed variables which have a mean equal to constant term.

Re: Smoothed values for TS not included in the estimation

PostPosted: Sat Sep 26, 2015 3:18 pm
by jpfeifer
Was debt a mean 0 observed variable? If not, this could explain the negative values as the mean is added.

Re: Smoothed values for TS not included in the estimation

PostPosted: Sat Sep 26, 2015 4:15 pm
by econ86
Debt is not included in the estimation as observed variable at this moment. It is just one of the endogenous variables in my log-linearized model, i.e. \hat{debt}_{t} with SS equal to 0 by definition.

Therefore also the smoothed values of debt should fluctuate around 0. Am I right?

Re: Smoothed values for TS not included in the estimation

PostPosted: Sun Sep 27, 2015 7:21 am
by jpfeifer
Yes. It should fluctuate around 0.

Re: Smoothed values for TS not included in the estimation

PostPosted: Tue Sep 29, 2015 12:53 pm
by econ86
In the model the expression for real debt dynamics (scaled by unit-root technology level) is as follows (in log-linearized form):

pd_hat = pd_hat(-1)/(mu_z_ss*pi_ss) - (1/(mu_z_ss*pi_ss))*(pi_hat + mu_zhat) + def_hat/pd_ss;

When solving the model, I found large coefficient of autocorrelation for debt, i.e. 0.999. Could this cause problems with Kalman smoother and consequently explain the negative smoothed values?