Data Manipulation

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.

Data Manipulation

Postby bigbigben » Tue Oct 24, 2006 1:08 pm

In the case of estimation, Instead of using the data in level and loglinear option in the estimation command, I use data hpfiltered by myself. Doesn't dynare treat the data as deviation from Steady State and use it accordingly or it still take some manipulation on the data before estimaytion?

For example, if I input the hpfilter residual of log(GDP) and log(consumption), named as y_obs and c_obs, can I just write two more equations in the dynare model:

y_obs=y+err1;
c_obs=c+err2;

where err1 and err2 stand for some measurement error, and y and c are the theoretical variables in level in the model.
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Postby MichelJuillard » Tue Oct 24, 2006 4:32 pm

The rule is always to have variables with identical definition in the data and in the model. If your data are detrended before, the variables in the model must deviation from the steady state. This mean that you have to rewrite your model in deviation form.

Kind regards

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

Postby bigbigben » Tue Oct 24, 2006 5:13 pm

Thanks, Michel. It is clear. I have one more question. If some of my variables needs log-linearization while others don't, how can I do that in dynare or should I do it before throwing them in Dynare?
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Postby MichelJuillard » Tue Oct 24, 2006 8:26 pm

The best way to handle it is to use Dynare without the 'loglinear' option and consider only straight linearization. If you want loglinearization for one variable, express this variable in log as in example2.mod and use exp(x) when you need the level of x in one equation.

Kind regards

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


Return to Dynare help

Who is online

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