General rules for measurement equations

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.

General rules for measurement equations

Postby coot » Thu May 20, 2010 11:15 am

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.
coot
 
Posts: 24
Joined: Tue Apr 20, 2010 10:54 am

Re: General rules for measurement equations

Postby jpfeifer » Thu May 20, 2010 11:25 am

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.
------------
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: General rules for measurement equations

Postby coot » Fri May 21, 2010 8:26 am

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.
coot
 
Posts: 24
Joined: Tue Apr 20, 2010 10:54 am

Re: General rules for measurement equations

Postby jpfeifer » Fri May 21, 2010 11:13 am

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.
------------
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: General rules for measurement equations

Postby coot » Fri May 21, 2010 1:57 pm

Thank you!
coot
 
Posts: 24
Joined: Tue Apr 20, 2010 10:54 am

Re: General rules for measurement equations

Postby econ86 » Tue Jun 23, 2015 7:36 pm

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

Re: General rules for measurement equations

Postby kerkkiat » Tue Jun 23, 2015 9:27 pm

ALLVtechnicalAppendix.pdf
(452.12 KiB) Downloaded 237 times


ALLVtechnicalAppendix.pdf
(452.12 KiB) Downloaded 237 times


I have faced the same problem like you. I hope these two papers will help you.
Attachments
ALLV1TechnAppx.pdf
(300.23 KiB) Downloaded 191 times
kerkkiat
 
Posts: 9
Joined: Mon Mar 30, 2015 6:49 am

Re: General rules for measurement equations

Postby jpfeifer » Thu Jun 25, 2015 6:22 pm

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


Return to Dynare help

Who is online

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