how many measurement error would be best?

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.

how many measurement error would be best?

Postby ZBCPA » Tue Nov 17, 2015 10:40 am

Dear Johhanes,

Could I ask two short questions?
1.When doing bayesian estimation, I see some paper add one measurement error(e.g. What's news in business cycles); while some add many measurement errors (e.g. real business cycles in emerging countries). Could you help explain why?

2. When using Observable variable of "hours worked", some paper use growth rate of h, while some paper use pecentage deviation from steady state. Does such difference matter?

Many thanks in advance.

Best regards,
Bo
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: how many measurement error would be best?

Postby jpfeifer » Tue Nov 17, 2015 1:48 pm

Please read 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. Both topics are discussed there.
------------
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: how many measurement error would be best?

Postby ZBCPA » Wed Nov 18, 2015 12:46 am

jpfeifer wrote:Please read 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. Both topics are discussed there.


Many thanks. Sure, I have seen your guide for many times. But I am still not sure how many measurement errors I can add in measurement equations as Exogenous variables,since I do not see any example in any published paper. To make the shocks no less than observables, I need at least 2 measurement errors as exgoneous variables.
Is it O.K like:
Code: Select all
var_exo ...y_Me c_Me i_Me h_Me;
model;
...
y_obs=y-y(-1)+d+log(dbar)+y_Me;
c_obs=c-c(-1)+d+log(dbar)+c_Me;
i_obs=i-i(-1)+d+log(dbar)+i_Me;
h_obs=h-h(-1)+h_Me;
end;

estimated_pramams;
stderr y_Me;
stderr c_Me;
stderr i_Me;
stderr h_Me;
...
end;
varobs y_obs c_obs i_obs h_obs;



Best regards,
Huan
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: how many measurement error would be best?

Postby jpfeifer » Wed Nov 18, 2015 10:11 am

What do you mean with as "exogenous variables". As detailed in Chapter 6 of my Guide, using "Measurement Errors as a Special Case of Exogenous variables" is equivalent to regular measurement error using Dynare capabilities (i.e. in the observation equation of the Kalman filter). Thus, the papers you cite use that type of measurement error and what you try to do is done in the Garcia-Cicco et al (2010) AER paper and is a valid approach.
------------
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: how many measurement error would be best?

Postby econ86 » Wed Nov 18, 2015 4:10 pm

Dear all,

I read the paper in which authors estimate a DSGE model with measurement errors:
y_obs = y - y(-1) + epsilon_me_y.

The variance of the measurement errors is calibrated so that it corresponds to 10% of the variance in each data series.

After estimation authors report the following table (see file attached). My question is: how the numbers in the last column (i.e. structural explanation) are calculated?

Regards,
Attachments
Measurement_error.pdf
(47.03 KiB) Downloaded 266 times
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: how many measurement error would be best?

Postby jpfeifer » Wed Nov 18, 2015 7:01 pm

By comparing the variance of the observed variable without measurement error
Code: Select all
y - y(-1)

to the one with measurement error
Code: Select all
y - y(-1) + epsilon_me_y
------------
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: how many measurement error would be best?

Postby econ86 » Thu Nov 19, 2015 6:09 am

Thank you for your answer. So, if I understand you correctly I need to compare theoretical variance (calculated at posterior mean, for example) when

var epsilon_me_y;
stderr 0;

and without this restriction?
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: how many measurement error would be best?

Postby jpfeifer » Thu Nov 19, 2015 7:04 am

Either that or you simply define

Code: Select all
y_growth=y - y(-1);
y_obs=y_growth+epsilon_me_y;

and then compare the variance of the two.
------------
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: how many measurement error would be best?

Postby econ86 » Thu Nov 19, 2015 9:43 am

Thank you for your help. I augmented my model with (measurement) equations without measurement errors (denoted as _nome in table below) as you suggested. After doing so I run my model using stoch_simul command (using calibrated parameters) and I get the following:

THEORETICAL MOMENTS
VARIABLE MEAN STD. DEV. VARIANCE
pi_obs 0.0100 0.0090 0.0001
dy_obs 0.0060 0.0307 0.0009
dc_obs 0.0060 0.1556 0.0242
dg_obs 0.0060 0.0327 0.0011
di_obs 0.0060 0.0591 0.0035
dm_obs 0.0060 0.0180 0.0003
dx_obs 0.0060 0.0345 0.0012
pi_def_c_obs 0.0100 0.0088 0.0001
reer_obs 0.0000 0.1398 0.0196
dw_obs 0.0060 0.0079 0.0001
e_obs 0.0000 0.1024 0.0105
dyfor_obs 0.0060 0.0063 0.0000
pifor_obs 0.0100 0.0029 0.0000
rfor_obs 0.1226 0.0638 0.0041
r_obs 0.1226 0.0658 0.0043
pi_def_i_obs 0.0100 0.0081 0.0001
pi_obs_nome 0.0100 0.0090 0.0001
pi_def_c_obs_nome 0.0100 0.0088 0.0001
dy_obs_nome 0.0060 0.0307 0.0009
dc_obs_nome 0.0060 0.1556 0.0242
di_obs_nome 0.0060 0.0587 0.0034
dm_obs_nome 0.0060 0.0176 0.0003
dx_obs_nome 0.0060 0.0344 0.0012
dg_obs_nome 0.0060 0.0327 0.0011
reer_obs_nome 0.0000 0.1398 0.0196
e_obs_nome 0.0000 0.1023 0.0105
dw_obs_nome 0.0060 0.0079 0.0001
r_obs_nome 0.1226 0.0655 0.0043
pi_def_i_obs_nome 0.0100 0.0080 0.0001

There is no difference between std/variance of respective variable when there is measurement error and without measurement error.

P.S.: I calibrated the standard deviation of the measurement errors so that it corresponds to 10% of the standard deviation in each data series. For example, for output growth:

var epsilon_me_y
stderr 0.00118 = 0.10*std(data)=0.10*0.0118;
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: how many measurement error would be best?

Postby jpfeifer » Sat Nov 21, 2015 2:55 pm

Please provide the full file.
------------
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: how many measurement error would be best?

Postby econ86 » Wed Dec 23, 2015 6:34 am

To calculate the so-called structural explanation I specified:
y_growth=y - y(-1);
y_obs=y_growth+epsilon_me_y;

ect.

When estimating the model, the variables declared under varobs command are only those with measurement error, i.e. y_obs. Is this ok?

Should I declare also y_growth?
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: how many measurement error would be best?

Postby jpfeifer » Wed Dec 23, 2015 9:30 am

Yes, this is OK.
I finally found time to look at your initial issue. The reason is that stoch_simul currently ignores measurement error. Thus, the moments for the variables without measurement error are correct, but the ones with measurement error are understated.
------------
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: how many measurement error would be best?

Postby econ86 » Thu Dec 24, 2015 7:36 am

Thank you very much for your answer.

If I understand you correctly, stoch_simul currently ignores all shocks that are included in an additive way?
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: how many measurement error would be best?

Postby jpfeifer » Sun Dec 27, 2015 7:05 pm

My mistake. I overlooked that you specified the measurement error as a structural shock. stoch_simul is able to handle this. However, your measurement error hardly plays a role. When you look at the variance decomposition, they tend to explain 1% or less of the total variance. This will be hardly noticeable in the moments table.
------------
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: how many measurement error would be best?

Postby econ86 » Tue Jan 19, 2016 10:10 am

I estimated my DSGE model with measurement error shocks. I included measurement errors in the model due to the stochastic singularity problem (despite having more shocks than observables in the model!). The standard deviation of the measurement error shocks is calibrated so that it corresponds to 10% of the standard deviation in each data series. After estimation I calculated historical decomposition and found that some observable variables (especially different measures of inflation, that is CPI inflation and domestic inflation based on GDP deflator) are driven mainly by measurement error shock (figure attached). How can these results be interpreted?

P.S. The measurement equation for inflation is the following:
pi_obs = (pi_ss - 1) + pi_hat + epsilon_me.

The historical decomposition is based on pi_obs. Should I calculate historical decomposition based on pi_hat?
Attachments
HistDecom.pdf
(154.25 KiB) Downloaded 252 times
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Next

Return to Dynare help

Who is online

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