程序报错如下:
Prior distribution for parameter thet has two modes!
警告: BETAINV did not converge for a = 0.000606609, b = 0.000298778, p = 0.001.
> In betainv at 61
In draw_prior_density at 46
In plot_priors at 55
In dynare_estimation_init at 257
In dynare_estimation_1 at 81
In dynare_estimation at 89
In laoshigai2 at 436
In dynare at 180
警告: BETAINV did not converge for a = 0.000606609, b = 0.000298778, p = 0.999.
> In betainv at 61
In draw_prior_density at 47
In plot_priors at 55
In dynare_estimation_init at 257
In dynare_estimation_1 at 81
In dynare_estimation at 89
In laoshigai2 at 436
In dynare at 180
警告: BETAINV did not converge for a = 0.000606609, b = 0.000298778, p = 1e-10.
> In betainv at 61
In prior_bounds at 84
In dynare_estimation_init at 260
In dynare_estimation_1 at 81
In dynare_estimation at 89
In laoshigai2 at 436
In dynare at 180
Loading 64 observations from datause.mat
Error in computing likelihood for initial parameter values
ESTIMATION_CHECKS: There was an error in computing the likelihood for initial parameter values.
ESTIMATION_CHECKS: You should try using the calibrated version of the model as starting values. To do
ESTIMATION_CHECKS: this, add an empty estimated_params_init-block with use_calibration option immediately before the estimation
ESTIMATION_CHECKS: command (and after the estimated_params-block so that it does not get overwritten):
错误使用 print_info (line 45)
Blanchard Kahn conditions are not satisfied: indeterminacy
出错 print_info (line 45)
error(['Blanchard Kahn conditions are not satisfied:' ...
mod源代码如下:(这是英文原文中的代码,再加入一个关于G财政支出的方程)
var y c ci cii i rr k x q h j hii b bii a pi r G u has;
varexo e_R e_j e_u e_a e_has e_ltv e_g;
parameters lamdaH rouH thet X c_Y ci_Y cii_Y I_Y qh_Y gam delt gamE m mii beta phiE gamH phiH iota iotaii h_H hi_H hii_H eta nu J psi mu alph kap b_Y qhi_Y qhii_Y R bii_Y si sii lamda_g rho_R rho_pi rho_Y rho_j rho_u rho_a rho_has omeg betaii;
beta = 0.99;
delt = 0.025;
alph = 0.64;
mu = 0.39;
X = 1.05;
thet = 0.75;
eta = 1.01;
gam = 0.95;
betaii = 0.985;
nu = 0.11;
J = 0.1;
m = 0.89;
mii = 0.55;
psi = 2;
phiE = 0;
phiH = 0;
rho_u = 0.59;
rho_j = 0.85;
rho_a = 0.03;
rho_Y = 0.13; %fed does not react to output
rho_pi = 0.27;
rho_R = 0.73;
rho_has = 0.75;
lamda_g = 0.6;
lamdaH = 0.2;
rouH = 0.2;
% Extra Definitions
gamE = (1-m)*gam + m*beta;
R = 1/beta;
qh_Y = gam*nu/((1-gamE)*X);
b_Y = beta*m*gam*nu/((1-gamE)*X);
si = (alph*(1-mu-nu) + X - 1)/X; %income share of patient household
sii = (1-alph)*(1-mu-nu)/X; %income share of impatient household
qhi_Y = J*si/(1-beta) + J*m*gam*nu/((1-gamE)*X) + J*mii*sii/(1-betaii-mii*(beta-betaii-J*(1-beta)));
qhii_Y = J*sii/(1-betaii-mii*(beta-betaii-J*(1-beta)));
bii_Y = J*beta*mii*sii/(1-betaii-mii*(beta-betaii) + J*mii*(1-beta));
cii_Y = (1-betaii-mii*(beta-betaii))*sii/(1-betaii-mii*(beta-betaii)+J*mii*(1-beta));
c_Y = (mu+nu-delt*gam*mu/(1-gam*(1-delt)) - (1-beta)*m*gam*nu/(1-gamE))/X;
omeg = (betaii-mii*betaii)/(1-mii*betaii);
iota = (1-beta)*(1-qhi_Y-qhii_Y)/qhi_Y;
iotaii = (1-beta)*qhii_Y/qhi_Y;
gamH = betaii + mii*(beta-betaii);
kap = (1-thet)*(1-beta*thet)/thet;
I_Y = 0.3; %must be calibrated. Not clear what the author used.
%
%Model
%
model(linear);
rr = r - pi(+1); %//ex ante real rate
// Aggregate Demand Block
y = c_Y*c + (1-c_Y-cii_Y-I_Y)*ci + cii_Y*cii + I_Y*i ;
ci = ci(+1) - rr;
i - k(-1) = gam*(i(+1)-k) + ((1-gam*(1-delt))/psi)*(y(+1)-x(+1)-k) + (1/psi)*(c-c(+1));