RT 有这本书的同学请帮忙看看,没有的也请用matlab帮忙运行试试
我在运行书147页这个mod文件时,为什么总是得出如下这些命令 我都是按照书上一步一步写的
Warning: Function C:\dynare\4.3.2\matlab\missing\ordeig\ordeig.m has the same name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.
> In path at 110
In addpath at 87
In dynare_config at 167
In dynare at 68
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.
Starting Dynare (version 4.3.2).
Starting preprocessing of the model file ...
ERROR: test1.mod:10.43: syntax error, unexpected ')'
??? Error using ==> dynare at 114
DYNARE: preprocessing failed
现将书上代码copy至此,希望有大神能够简单的解释下 真的非常感谢
//Ramsey Model
var c k z;
varexo e;
parameters alpha beta sigma Kbar Cbar Ybar;
alpha=0.7;beta=0.95;sigma=2;
Kbar=(beta*(1-alpha))^(1/alpha);
Ybar=Kbar^(1-alpha);
Cbar=Kbar^(1-alpha)-Kbar;
model;
exp(c)^(-sigma)=beta*(exp(c(+1)))^(-sigma))*(exp(+1))*(1-alpha)*exp(k)^(-alpha));
exp(c)+exp(k)=exp(z)*exp(k(-1))^(1-alpha);
z=e;
end;
initval;
k=log(Kbar);c=log(Cbar);z=0;e=0;
end;
steady;
check;
shocks;
var e;
stderr 1;
end;
stoch_simul;



雷达卡






京公网安备 11010802022788号







