Page 1 of 1

Measurement equation in Smets and Wouters 2007

PostPosted: Fri May 30, 2014 10:58 am
by sarah
I am trying to understand the reasoning behind measurement equations in Smets and Wouters 2007. I do have their mod file but I have (at least) two doubts.


1) In this post viewtopic.php?f=1&t=2490 is suggested to use a measurement equation for hours like:

Code: Select all
nobs= -log(n_SS) + n;
since
Code: Select all
nobs =log(Nobs)=log(Nobs*N_SS/N_SS)=n + log(N_SS).


However in Smets and wouters like in many other paper I find a sum and not a minus for the measurement equation, moreover the steady state is not in logarithm as suggested in the previous post:

Image *from SW 2007


2)Regarding the common trend variables (y, c, w) SW use an estimated values for the trend

Code: Select all
gamma_hat =100*(γ −1)
where
Code: Select all
gamma=1.004


Can you explain me how to estimate the 1.004 value and why I should multiply it by 100?


Thankyou and sorry if some of this are trivial questions...

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Fri May 30, 2014 11:15 am
by jpfeifer
1. You are confusing two things here. Ther file in the post uses an nonlinear model and lets Dynare do the log-linearization. In contrast, the Smets/Wouters model is already log-linearized. This explains the different sign (in one case you have to subtract the mean from the model variable to match it to demeaned data while in the other you need to add the steady state to the mean 0 model variable in order to match it to non-demeaned data). All this is explained in 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.

2. See Remark 10 (Scaling With a Factor 100) in the linke guide. The gamma = 1.004 is the gross growth rate. By subtracting 1 you get a net growth rate of 0.004 or 0.4 percent (which is what you obtain by multiplying with 100).

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sat May 31, 2014 11:13 am
by sarah
Thank you very much!

So the measurement equation allows me to link observed (differentiated, with mean) values to model variables.

As written in your paper, it is possible to assume that the long term mean is the steady state value and use it to demean the data. What SW do, as you suggest, is to add the model steady state to the linearised (mean=0) variables. This make sense, what is not clear for me is that the model steady state will be different from the data mean. Is this an issue?

As an example

-For the output i use the measurement equation
Code: Select all
y_obs=y-y(-1)+mu
where mu is the long term growth coming from data.

-For interest rate i use
Code: Select all
r_obs=r+r_ss
but r_ss is my model parametric steady state. Is not coming from data.


Thank you again.

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sun Jun 01, 2014 11:06 am
by jpfeifer
I don't get your point. In case of
Code: Select all
r_obs=r+r_ss

when r has steady state 0 and r_obs has non-zero steady state, then r_ss must account for the mean. Usually, r_ss=1/beta-1 or something like that, i.e. you can estimate beta by making r_ss and the mean of r_obs equal.

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sun Jun 01, 2014 1:52 pm
by sarah
Ok my question was a mess but your answer is exactly what I was asking. My concern was how to link steady-state in measurement equations and real data. It is now clear that for the interest rate the linkage is in the r_ss=1/beta-1 equation, assuming r_ss=mean(r_obs).

In SW I saw that for the hours worked they demean the data and than use a formula of this kind: h_obs=h+0. So I guess that a mixed strategy of imposing measurement equations is it possible (demeaned and non-demeaned data).

In my model I have public surplus and deficit. Unfortunately the model surplus steady-state depends on many variables not observed (such as consumption and capital).

Code: Select all
surplus_ss=tax*consumption+tax*Capital-G


May I calculate the surplus sample mean and use it as the steady-state in the measurement equation instead of using the above formula?

Code: Select all
s_obs=s+s_ss 
where s_ss is the sample mean and s steadu state=0 since the model is linearised.


Hope this make sense.


Thank you again!

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sun Jun 01, 2014 2:42 pm
by jpfeifer
No, you cannot do that, because surplus_ss is a function of different parameters of the model (e.g. of the tax rate) and not something you can independently estimate. See Remark 4 (Parameter dependence and the use of model-local variables) in the guide.

The only reason to use undemeaned data here is if you need the mean to pin down some parameters of your model like the tax rate. If you already pinned down those parameters, there is no point in using the mean.

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sun Jun 01, 2014 2:57 pm
by sarah
Ok so as you suggest I will use the model steady surplus in this way:

Code: Select all
model;
...
#C_ss=...;
#K_ss=...;

#surplus_ss=tax*C_ss+tax*K_ss-G_ss;
...

//Measurement equations

s_obs=s+surplus_ss

end;



Is this the correct way?

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sun Jun 01, 2014 3:05 pm
by jpfeifer
It looks correct to me.

Re: Measurement equation in Smets and Wouters 2007

PostPosted: Sun Jun 01, 2014 3:13 pm
by sarah
Thank you so much for your help!