Page 1 of 1

General rules for measurement equations

PostPosted: Thu May 20, 2010 11:15 am
by coot
Hello.
I am trying to estimate a DSGE developed in "Bayesian Estimation of an Open Economy DSGE Model with Incomplete Pass-Through" 2005 by Malin Adolfson, Stefan Laseén, Jesper Lindé and Mattias Villani, Sveriges Riksbank Working Paper Series 179. After reading a lot through this forum, I still can't understand how to specify measurement equations. In the paper they have a stochastic unit root trend induced by technology. I have my model stationarized and log liniarized. But as I saw, writing measurement equations is data specific process. Can anyone tell me please general rules in writing measurement equations? I would like to work with raw data, how to ralate raw data to log-liniarized equations? In the paper they offer some formulas for writing measurement equations, but I don't know how to bring this formulas to dynare.

Re: General rules for measurement equations

PostPosted: Thu May 20, 2010 11:25 am
by jpfeifer
Hi, you should follow the advice in bottom half of the following post:
http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=2490
which shows how to match models written in stationary log deviations form to their empirical correlate.

Re: General rules for measurement equations

PostPosted: Fri May 21, 2010 8:26 am
by coot
I would prefer not to demean first difference of logs...

In my model unstationary variables are stationarized like this:
1. If it is a nominal variable divide by Price and technology
2 if it is a real variable divide by technology

Is it correct if I consider for example obs_GDP in delta logs (log(GDP)-log(GDP(-1))) as input (without demeaning) and specify measurement equation as

Code: Select all
obs_GDP=(y_hat-y_hat(-1))+tnd_technology+measurement_error


where y_hat is log liniarized deviation of GDP from steady state.

Re: General rules for measurement equations

PostPosted: Fri May 21, 2010 11:13 am
by jpfeifer
If tnd_technology is the trend growth rate of technology in steady state around which you log-linearize, you are correct.

Demeaning of the first difference of logs just means that you do not have to worry about this component as you subtracted it from the data (and it hence does not appear in the measurement equation either). Note also that it is not advocated to mechanically demean the data. Assume for example that Y grows with the technology rate X_t. If you calibrate your model by using X_t as the growth rate of technology, all variables growing with technology should be demeaned by subtracting X_t from the log differences. It would be incorrect to set the mean of C to 0 by subtracting its own data mean, because then you would impose that C and Y grow with different rates in steady state.

Your way of including the steady state growth rate as a constant in the equation essentially does the same trick.

Re: General rules for measurement equations

PostPosted: Fri May 21, 2010 1:57 pm
by coot
Thank you!

Re: General rules for measurement equations

PostPosted: Tue Jun 23, 2015 7:36 pm
by econ86
My question refers to:

coot wrote:I would prefer not to demean first difference of logs...

In my model unstationary variables are stationarized like this:
1. If it is a nominal variable divide by Price and technology
2 if it is a real variable divide by technology

Is it correct if I consider for example obs_GDP in delta logs (log(GDP)-log(GDP(-1))) as input (without demeaning) and specify measurement equation as

Code: Select all
obs_GDP=(y_hat-y_hat(-1))+tnd_technology+measurement_error


where y_hat is log liniarized deviation of GDP from steady state.


I think that instead of
Code: Select all
obs_GDP=(y_hat-y_hat(-1))+tnd_technology+measurement_error


should be:
obs_GDP=(y_hat-y_hat(-1))+tnd_technology_ss + tnd_technology_hat + measurement_error

where tnd_technology_ss is the trend growth rate of technology in steady state and tnd_technology_hat is the log liniarized deviation of trend growth rate of technology from steady state.

Is that correct?

Re: General rules for measurement equations

PostPosted: Tue Jun 23, 2015 9:27 pm
by kerkkiat
ALLVtechnicalAppendix.pdf
(452.12 KiB) Downloaded 236 times


ALLVtechnicalAppendix.pdf
(452.12 KiB) Downloaded 236 times


I have faced the same problem like you. I hope these two papers will help you.

Re: General rules for measurement equations

PostPosted: Thu Jun 25, 2015 6:22 pm
by jpfeifer
Please 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.
The first example assumed a linear deterministic trend. You are after a stochastic trend. That case is also described in the Guide.