what are "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.

what are "measurement equations"

Postby fuyangzhao » Fri Jul 22, 2016 3:56 am

Hi all!

Recently I took a quick glance over the C++ code for Liu, Wang, and Zha (2013 Econometrica). The code is available on Zha's homepage: tzha.net.

They first inputted their model in Mathematica, then converted .nb files to .m files, and finally converted .m files to c files. Among these files, some named "Cinput_MeasureEqns_TAG.m"
Cinput_MeasureEqns_modb_6v.m
(2.09 KiB) Downloaded 85 times
raise a question to me. What are "measurement equations"? In effect, I didn't find any comment on this conception in their code, so I think it might be a technical term. In their file "Generate_gensysform_credit4housing.nb"
Generate_gensysform_credit4housing.zip
(23.85 KiB) Downloaded 72 times
, there is a block named "measurement equations" at the bottom, but it's blank.

I searched dynare user's guide, and also found the key word, but without any explanation. Are these equations related to Kalman filter and log-likelyhood functions? Or, are these equations related to the observable variables?

BTW, have anyone implemented their C++ code?

Thanks in advance for any help!
Fuyang
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: what are "measurement equations"

Postby jpfeifer » Fri Jul 22, 2016 5:54 am

They are equivalently called observation equations. 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 for details
------------
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: what are "measurement equations"

Postby fuyangzhao » Fri Jul 22, 2016 8:44 am

jpfeifer wrote:They are equivalently called observation equations. 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 for details


Thank you Professor, for always quick reply! I'll carefully study your work!

In LWZ's measurment equations .m file, I couldn't understand the following lines. I took a quick scan of your work and didn't find the answer.
Code: Select all
a1st(1) = log(glambdastar);
a1st(2) = log(glambdaq);
a1st(3) = log(glambdastar);
a1st(4) = log(glambdastar);
a1st(5) = log(glambdastar);
a1st(6) = log(nbar);

%-- A few derived parameters.
InvdenTerm = 1.0/(1.0-(1.0-gphi)*galpha);
numTerm = (1.0-gphi)*galpha;
COY = CeOY + ChOY;
CeOC = CeOY/COY;  % Ce/C
ChOC = ChOY/COY;  % Ch/C

%---$$##
%--- 1st measurement equation for land price.
H1st(1,1) = 1.0;
H1st(1,34) = -1.0;
H1st(1,18) = InvdenTerm;
H1st(1,19) = InvdenTerm;
H1st(1,39) = -InvdenTerm;
H1st(1,20) = numTerm*InvdenTerm;
H1st(1,21) = numTerm*InvdenTerm;
H1st(1,40) = -numTerm*InvdenTerm;
%--- 2nd measurement equation for biased technology.
H1st(2,20) = 1.0;
H1st(2,21) = 1.0;
H1st(2,40) = -1.0;
%--- 3rd measurement equation for consumption.
H1st(3,2) = ChOC;
H1st(3,35) = -ChOC;
H1st(3,3) = CeOC;
H1st(3,36) = -CeOC;
H1st(3,18) = InvdenTerm;
H1st(3,19) = InvdenTerm;
H1st(3,39) = -InvdenTerm;
H1st(3,20) = numTerm*InvdenTerm;
H1st(3,21) = numTerm*InvdenTerm;
H1st(3,40) = -numTerm*InvdenTerm;
%--- 4th measurement equation for investment.
H1st(4,4) = 1.0;
H1st(4,37) = -1.0;
H1st(4,18) = InvdenTerm;
H1st(4,19) = InvdenTerm;
H1st(4,39) = -InvdenTerm;
H1st(4,20) = numTerm*InvdenTerm;
H1st(4,21) = numTerm*InvdenTerm;
H1st(4,40) = -numTerm*InvdenTerm;
%--- 5th measurement equation for business debt.
H1st(5,12) = 1.0;
H1st(5,38) = -1.0;
H1st(5,18) = InvdenTerm;
H1st(5,19) = InvdenTerm;
H1st(5,39) = -InvdenTerm;
H1st(5,20) = numTerm*InvdenTerm;
H1st(5,21) = numTerm*InvdenTerm;
H1st(5,40) = -numTerm*InvdenTerm;
%--- 6th measurement equation for hours.
H1st(6,5) = 1.0;

%---$$##
F1st(nzbase+1,1) = 1.0;  %34
F1st(nzbase+2,2) = 1.0;  %35
F1st(nzbase+3,3) = 1.0;  %36
F1st(nzbase+4,4) = 1.0;  %37
F1st(nzbase+5,12) = 1.0; %38
F1st(nzbase+6,19) = 1.0; %39
F1st(nzbase+7,21) = 1.0; %40


There were 6 observable variables. And it seems that they were dealing with them for the first 40 periods. Would it possible that you explain for me?
Thanks!
Fuyang
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests