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
```

bbgg.mod (2.82 KB)

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.

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 ?

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.

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.

bbgg.mod (3.39 KB)

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.

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.

try1.xls (15 KB)

I still have no idea about the problem…