Measurement equation

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 equation

Postby anhn39 » Mon Dec 09, 2013 2:58 pm

Hi everyone,

I am having a problem regarding the measurement equation in estimation. Can you give me some advice please?

For example with the nominal interest rate:

Quarterly Nominal Interest rate is computed by:
Robs=FFR/400;
Let "consr" be the steady-state implied by the model, so the measurement for interest rate is:
Robs=Rhat + consr (Rhat is the deviation of R from steady state)

But as I learned from Smets and Wouter, it can be done by:
Robs=FFR/4
then the measurement equation is:
Robs=Rhat+consr*100 (consr" is the steady-state implied by the model)

When I use the second way, my model can be estimated successfully and the Hessian matrix at the mode is positive definite.
But if I employ the first way, the Hessian matrix is not positive definite.

So which way should I use?

Thank you very much,
anhn39
 
Posts: 12
Joined: Sat Dec 07, 2013 12:22 am

Re: Measurement equation

Postby jpfeifer » Tue Dec 10, 2013 10:41 am

It depends on your scaling in the rest of the model. Dividing by 400, you are saying that 0.01 is a 1% quarterly net interest rate. Dividing by 4, you are saying that 1 is a 1% quarterly net interest rate. Due to linearity, you can do this, but this will require you to scale up also the other variables by a factor of 100 to maintain consistency. A good check typically is to simulate the observed model variables with sensible parameters and compare them to the actually observed data. They should look similar. See also https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf?attredirects=0
------------
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: Measurement equation

Postby anhn39 » Tue Dec 10, 2013 9:52 pm

Thanks Jpfeifer.

I tried to estimate a linear model using two alternative methods of treating the data, but one has positive definite Hessian matrix, the other doesnt. Do you know why it happens? I guess I have to change the prior of standard deviation of shocks, right? the standard deviation of shocks should be smaller when I divide data by 100 (and 400 for annual data like interest rate)

If I want to estimate a non-linear model (from 2nd-order perturbation) using particle filter, what kind of data transformation should I use? What did you do in your paper called "Policy uncertainty and Business Cycles"?

Thank you very much

Anh Nguyen
anhn39
 
Posts: 12
Joined: Sat Dec 07, 2013 12:22 am

Re: Measurement equation

Postby jpfeifer » Wed Dec 11, 2013 1:57 pm

There are many reasons why this could happen. The prior has to be consistent with your data specification and should be smaller for the standard deviations if you take 0.01 to be 1%.

It depends. My experience is that you should opt for a transformation that keeps the mean in the data (for at least 1 variable). If you cannot do that, use first differences.What we did is
All growing variables are logged and in first differences, while gross inflation, the gross federal funds rate, and hours worked enter in log-levels
------------
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: Measurement equation

Postby anhn39 » Fri Dec 13, 2013 2:44 pm

Thank you very much
anhn39
 
Posts: 12
Joined: Sat Dec 07, 2013 12:22 am


Return to Dynare help

Who is online

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