Calculation of theoretical moments with measurement errors

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.

Calculation of theoretical moments with measurement errors

Postby KarlWalentin » Wed Sep 17, 2008 1:48 pm

I would like to know if (estimated) measurement errors are included in the calculation of theoretical moments, e.g. variances, of a model when I run stoch_simul.

Regards,
Karl
KarlWalentin
 
Posts: 16
Joined: Wed Feb 21, 2007 4:22 pm

Postby MichelJuillard » Wed Sep 17, 2008 2:11 pm

No, it isn't. But we could add it if you juge it useful. We need also to make sure that it is possible to declare a measurement error in the shocks statement using simple a stderr on an endogenous variable.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby abscissaordinate » Thu Sep 18, 2008 6:24 pm

Karl,

Just out of curiosity, how do you include measurement errors in your model?

What I have done is as follows. Say output, y, is an observable for my model, then somewhere in my model declaration step I add the line

yobs = y + nu_y;

where yobs is the observed y and nu_y is my intended measurement error.

Is that how you do it? If not, how do you incorporate measurement errors?

Thanks!
abscissaordinate
 
Posts: 15
Joined: Wed Nov 14, 2007 2:07 am

Postby StephaneAdjemian » Fri Sep 19, 2008 10:46 am

Hi Karl,

If you follow this approach, obviously the reported variance for yobs will include the theoretical variance (ie the variance of y) and the variance of the measurement error (ie the variance of nu_y).

But, when you estimate a model with measurement error you do not need to add an equation in the model (which may be a bad idea because this will increase the size of the state vector). You can simply declare a prior on the variance of any observed variable (see the manual), then Dynare will understand that you want to add a measurement error on this variable. In this case, the reported variance for the variable is the theoretical variance (without measurement error).

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

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