Bayesian DSGE and trouble with data definition

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.

Bayesian DSGE and trouble with data definition

Postby cicciorasta » Thu Sep 27, 2007 10:24 am

Hi
I have a question. We are trying to estimate a DSGE with Dynare but we get some trouble with data definition and with predicted variables. We have written the model equations in non linear form. Then we ask Dynare to loglinearize the model. Our observable variables are detrended by Hp filter. Then we estimate the model but the predicted variables are not fluctuating around a zero mean. Why is this the case? Should we write the model in linear term dyrectly? We would avoid loglinearinzing the model by hand, this is time consuming and not efficient with respect to even small changes in the modelling strategy. Please, let me know
Thanks
Francesco
cicciorasta
 
Posts: 5
Joined: Thu Sep 27, 2007 10:13 am

Re: Bayesian DSGE and trouble with data definition

Postby StephaneAdjemian » Thu Sep 27, 2007 6:11 pm

Hi Francesco,

If you declare a model with the non linear FOCs, use the option loglinear in the estimation command and call a datafile where the time series are demeaned (ie you do not use the option prefilter in the estimation command) then dynare adds the (logged) steady state of the observed endogenous variables in the measurement equation (because in this case dynare does not know that you are estimating the model with demeaned data). Before the estimation you should write:

Code: Select all
 options_.noconstant = 1;


Dynare will then understand that the constant is not needed in the steady state equation. Let me know if there is still a problem.

Best,
Stéphane.
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Bayesian DSGE and trouble with data definition

Postby jpmauricio » Sun Nov 08, 2009 10:28 pm

Hi,

I tried to implement the trick proposed by Stéphane, but (I guess) since the demeaned data has negative values I received the next error message.

??? Error using ==> dynare_estimation_1 at 250
There are complex values in the data! Probably a wrong transformation

Is there another analogous trick to deal with the issue to not loglinearize the model by hand?

Thanks in advance

Jose P
jpmauricio
 
Posts: 4
Joined: Tue May 31, 2005 8:02 am


Return to Dynare help

Who is online

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