Replicating Adolfson(2007) bayesian open economy DSGE model

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.

Replicating Adolfson(2007) bayesian open economy DSGE model

Postby phuong.macro » Tue Apr 04, 2017 3:51 pm

I am replicating Adolfson (2007). My dynare code has a problem is that

''Error using print_info (line 98)
Likelihood is not a number (NaN) or a complex number

Error in print_info (line 98)
error('Likelihood is not a number (NaN) or a complex number');

Error in initial_estimation_checks (line 69)
print_info(info, DynareOptions.noprint, DynareOptions)

Error in dynare_estimation_1 (line 179)
oo_ = initial_estimation_checks(objective_function,xparam1,dataset_,M_,estim_params_,options_,bayestopt_,oo_);

Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);

Error in allv (line 1697)
dynare_estimation(var_list_);

Error in dynare (line 180)
evalin('base',fname) ;''

I would like to upload all my file as below

anyone can help me
Attachments
VARDATA.xls
(60.5 KiB) Downloaded 47 times
allv_steadystate.m
(3.45 KiB) Downloaded 49 times
allv.mod
(27.66 KiB) Downloaded 62 times
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Replicating Adolfson(2007) bayesian open economy DSGE mo

Postby jpfeifer » Wed Apr 05, 2017 3:48 pm

Hi,
I don't get that same error message, but rather a different one that comes from the fact that you forgot the
Code: Select all
diffuse_filter

option
------------
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: Replicating Adolfson(2007) bayesian open economy DSGE mo

Postby phuong.macro » Thu Apr 06, 2017 9:39 am

Dear Prof. Pfeifer

yes I got it by adding your suggested command. My model and data are not stationary yet
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Replicating Adolfson(2007) bayesian open economy DSGE mo

Postby jpfeifer » Thu Apr 06, 2017 2:59 pm

Your data should be stationary. Some of the model variables will not be stationary.
------------
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: Replicating Adolfson(2007) bayesian open economy DSGE mo

Postby phuong.macro » Fri Apr 07, 2017 9:22 am

Dear Pfeifer

Yes sir, In this case, when I need a stationary data?

and another question is that

I have read your paper, titled: ''a guide to sepcifying observation equations for the estimation of DSGE model''

I know that I have to match the observable variables with the theoretical model variables before estimation

However, there are some complicated models with many variables. Then do we have a general solution to match the observable variables with the theoretical model variables .

In particular, I am working on the paper, titled: ''Optimal monetary policy in an operational medium-sized DSGE model'' (http://onlinelibrary.wiley.com/doi/10.1 ... x/abstract)

Then I read their Technical appendix as the attached file. I have difficulty to derive the measurement equation systems (Section 3.1. Difference Specification, page. 28)

I mean How to derive this measurement equation system?

would you kindly give me some advices about this

Thank you so much indeed
Attachments
ALLS1TechnAppx.pdf
(324.57 KiB) Downloaded 49 times
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Replicating Adolfson(2007) bayesian open economy DSGE mo

Postby dynare_usr » Fri Apr 07, 2017 5:08 pm

How to derive this measurement equation system?


Check time series books that describe Kalman Filter. From Hamilton to Nelson, Kim, and more recently published texts.
dynare_usr
 
Posts: 21
Joined: Tue Dec 29, 2015 8:21 pm

Re: Replicating Adolfson(2007) bayesian open economy DSGE mo

Postby jpfeifer » Sun Apr 09, 2017 3:33 pm

Please do not cross-post. See my answer at http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=17671#p36456
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests