Dear friends,
I am getting the following error message when I run my dynare code:
??? Error using ==> print_info
MJDGGES returns the following error code11
Error in ==> c:\dynare\4.0.4\matlab\stoch_simul.m
On line 44 ==> print_info(info);
Error in ==> c:\dynare\4.0.4\matlab\ramsey_policy.m
On line 25 ==> info = stoch_simul(var_list);
Error in ==> C:\MATLAB6p5\work\DSGE_Stackelberg\fiscalleadership.m
On line 144 ==> ramsey_policy(var_list_);
Error in ==> c:\dynare\4.0.4\matlab\dynare.m
On line 102 ==> evalin('base',fname) ;
So, I would like to solve this problem but unfortunately i do not know how to start..
Does anyone have a solution, clue, and so on?
My sincerely regards to all dynare community..
The code is:
// # declaration of endogenous variables
var pi, x, b, i, g;
// # declaration of exogenous variables
varexo nu, rn, eta, xi;
// # declaration of parameters
parameters gamma_0, gamma_i1, gamma_i2, gamma_pi0, gamma_x0, gamma_x1, beta, kappa, sig, alpha, B, ie, varpi, rhopi, rhox, rhog;
// parameters values
gamma_0=0;
gamma_i1=0.4;
gamma_i2=0.2;
gamma_pi0=0.8;
gamma_x0=0.5;
gamma_x1=0.1;
beta=0.9;
kappa=2;
sig=0.3;
alpha=0.2;
B=0.2;
ie=0;
varpi=0.39;
rhopi = 0.5;
rhopi = 0.1;
rhog = 0.2;
// # specification of the model equations
model(linear);
pi = kappa*x + beta*pi(+1) + nu;
x = x(+1) - sig*(i - pi(+1) - rn) + alpha*b;
b = (1+ie)*b(-1) + B*i + g - varpi*x + eta;
i = - gamma_0*ie + gamma_i1*i(-1) - gamma_i2*i(-2) + gamma_pi0*pi + gamma_x0*x - gamma_x1*x(-1) + xi;
end;
// # specification of the shocks
shocks;
var nu; stderr 0.2;
var rn; stderr 0.2;
var eta; stderr 0.2;
var xi; stderr 0.2;
end;
// # loss function
planner_objective rhopi*pi^2 + rhox*x^2 + rhog*g^2;
ramsey_policy(planner_discount=0.9);