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.

measurement errors

Postby tess1704 » Wed Jul 11, 2012 3:53 pm

Hi,

I am estimating a model with Dynare. I need to add measurement errors to my observed variables, to model these measurement errors as AR(1) processes and set the variance of the measurement errors equal to 5% of total variance of the observed variables (I refer to McGrattan, Rogerson and Wright, 1997, IER, for this).

Here is what I do in the .mod file. After specifing the equations of the model, I add 2 measurement equations as follows:

oh=h+meh;
ou=u+meu;

where oh and ou are my observables while h and u are the corresponding variables of the model. meh and meu are the measurement errors.

Then I set the measurement errors to evolve as AR(1) processes:

meh=rhoh*meh(-1)+hs;
meu=rhou*meu(-1)+us;

Then in the estimated_params section I write:

stderr us,0.1,0.01,3,INV_GAMMA_PDF,0.1,Inf;
stderr hs,0.1,0.01,3,INV_GAMMA_PDF,0.1,Inf;

stderr oh, 0.0005,0.0001,0.00199,INV_GAMMA_PDF,0.0005,Inf;
stderr ou, 0.0005,0.0001,0.002199,INV_GAMMA_PDF,0.0005,Inf;

Is this right? it is consistent with what I would like to do? should all these standard errors be estimated?
because the code has some difficulties to estimate the posterior mode.

Thank you in advance

Alice
tess1704
 
Posts: 10
Joined: Fri Oct 08, 2010 2:27 pm

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests