Smoothed 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.

Smoothed Variables

Postby frankcw » Fri Apr 05, 2013 9:46 pm

Hello,

I recently found a very puzzling outcome from running estimation. For example, u is the unemployment rate and is observable. When we get the smoothed variable of u, the smoothed one is exactly like the original u, except for a constant!

I expect the smoothed one to be the same as the observation, if it is observable (by definition). But where is the constant from? Did dynare subtract the mean of the smoothed variable somewhere in producing the smoothed variable in the oo_.? I guess the mean is the constant.

Thanks a lot,
Frank
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm

Re: Smoothed Variables

Postby frankcw » Mon Apr 08, 2013 8:41 pm

I found out the answer by myself through looking at the dynare m files. The Kalman Filter implemented in Dynare is Diffuse Kalman Filter, instead of usual one we learned in class. We have to add the steady state value back, which is stored in the oo_.Smoother.Steady_State.

Hope it helps those who have similar questions. Also, looking at the dynare m files is quite fun.

Frank
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm

Re: Smoothed Variables

Postby SébastienVillemot » Wed Apr 17, 2013 2:55 pm

Indeed you have to add back the steady state to the smoothed variable. But that has nothing to do with the type of Kalman filter. Actually Dynare uses a Diffuse Kalman Filter for models with a unit root only.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 5 guests