Smoothed values for TS not included in the estimation

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.

Smoothed values for TS not included in the estimation

Postby econ86 » Mon Aug 24, 2015 3:54 pm

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.
Last edited by econ86 on Sun Nov 29, 2015 9:59 am, edited 1 time in total.
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Tue Aug 25, 2015 10:19 am

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?
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Fri Sep 25, 2015 5:59 am

Dear
Last edited by econ86 on Sun Nov 29, 2015 9:58 am, edited 1 time in total.
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Fri Sep 25, 2015 6:36 am

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).
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Fri Sep 25, 2015 7:17 am

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?
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Fri Sep 25, 2015 7:22 am

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
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Fri Sep 25, 2015 8:25 am

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.
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Fri Sep 25, 2015 8:56 am

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.
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Fri Sep 25, 2015 1:52 pm

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?
Attachments
Smoothed_shocks.pdf
(170.79 KiB) Downloaded 182 times
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Sat Sep 26, 2015 9:23 am

The smoothed shocks look good. Are the other smoothed observed variables mean 0?
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Sat Sep 26, 2015 11:22 am

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.
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Sat Sep 26, 2015 3:18 pm

Was debt a mean 0 observed variable? If not, this could explain the negative values as the mean is added.
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Sat Sep 26, 2015 4:15 pm

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?
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Smoothed values for TS not included in the estimation

Postby jpfeifer » Sun Sep 27, 2015 7:21 am

Yes. It should fluctuate around 0.
------------
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: Smoothed values for TS not included in the estimation

Postby econ86 » Tue Sep 29, 2015 12:53 pm

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?
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Next

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests