MJDGGES returns the following error code17

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.

MJDGGES returns the following error code17

Postby dean0504 » Thu May 27, 2010 7:55 am

Hey,guys.I run a program to estimate the BGG model with heterogenous,but the matlab show me that
??? Error using ==> print_info
MJDGGES returns the following error code17
Error in ==> check at 53
print_info(info);
Error in ==> bbgg at 242
check;
Error in ==> dynare at 102
evalin('base',fname) ;
I am sure that the model can be solved ,so what does the erro mean and how to get rid of the problem?I attached the code here.Thank you for any help.

Dean
Attachments
bbgg.mod
bgg model with heterogenous
(2.82 KiB) Downloaded 131 times
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: MJDGGES returns the following error code17

Postby jpfeifer » Thu May 27, 2010 8:33 am

You have to define beta and thet before computing kap as you divide by zero otherwise. Then put the check command after the steady command and use the output to fix the steady state.
------------
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: MJDGGES returns the following error code17

Postby dean0504 » Thu May 27, 2010 10:06 am

Thank you for your help,I replaced kappa with the specific expression,but dynare told me "numerical initial values incompatible with the following equations".what should I do now ? When I caliberate the modle ,the model can be solved correctly.so what should I do now ?
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: MJDGGES returns the following error code17

Postby jpfeifer » Thu May 27, 2010 11:50 am

Dynare uses 0 as the starting value for steady state computations, if you do not supply other values. So check in your model that you do not divide by a variable that is initialized with 0. For example, you divide by Rk2 which is not initialized in an initval statement. Hence the initial value of 0 is not compatible with the equation where the division occurs.
------------
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: MJDGGES returns the following error code17

Postby dean0504 » Fri May 28, 2010 2:18 am

Thank you for your advise.I defined all the parameters before the "model" command,and then the model can be solved.But after solving the model,dynare told me
"You did not declare endogenous variables after the estimation command.
Posterior IRFs will be computed for the 28 endogenous variables
of your model, this can be very long....
Choose one of the following options:
[1] Consider all the endogenous variables.
[2] Consider all the observed endogenous variables.
[3] Stop Dynare and change the mod file."


Whatever I choose,dynare show me the prior distributions ,and then warn that
??? Error: This statement is incomplete.
Error in ==> read_variables at 42
eval(dyn_instr_01);
Error in ==> dynare_estimation_1 at 237
rawdata = read_variables(options_.datafile,options_.varobs,[],options_.xls_sheet,options_.xls_range);
Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});
Error in ==> bbgg at 322
dynare_estimation(var_list_);
Error in ==> dynare at 102
evalin('base',fname) ;

So what does this mean?The code I have modified and attached here.
Attachments
bbgg.mod
the code
(3.39 KiB) Downloaded 124 times
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: MJDGGES returns the following error code17

Postby jpfeifer » Fri May 28, 2010 5:57 am

Hi, please post your data file. But before doing this, please retry your code after giving the data file a different name. "try" is the name of a reserved Matlab command, so this may give you trouble.
------------
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: MJDGGES returns the following error code17

Postby dean0504 » Fri May 28, 2010 7:31 am

hey,I change the name by "try1",and then the data can be inputed ,but dyanre warned
Error in computing likelihood for initial parameter values
??? Error using ==> print_info
Blanchard Kahn conditions are not satisfied: indeterminacy
Error in ==> initial_estimation_checks at 87
print_info(info)
Error in ==> dynare_estimation_1 at 320
initial_estimation_checks(xparam1,gend,data);
Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});
Error in ==> bbgg at 322
dynare_estimation(var_list_);
Error in ==> dynare at 102
evalin('base',fname) ;
I attached my data file here.Thank you for help.
Attachments
try1.xls
(15 KiB) Downloaded 107 times
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: MJDGGES returns the following error code17

Postby dean0504 » Mon May 31, 2010 1:02 pm

I still have no idea about the problem.......
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests