楼主: Dylan890328
6899 33

[经济学增长周期理论] Dynare 程序求纠错 [推广有奖]

21
317792209 在职认证  学生认证  发表于 2012-12-9 09:01:54
按时毕业,按时睡觉。多发论文,多赚点钱。

22
zhangtao 发表于 2012-12-9 09:49:56
Dylan890328 发表于 2012-12-8 10:07
但是这个式子肯定是对的啊,“DSGE模型讨论六”里面也用到了这个一模一样的式子
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.1).
Starting preprocessing of the model file ...
Found 10 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.


STEADY-STATE RESULTS:

w                    -2.65956
i                    0.0202027
p                    -2.42141
y                    0
h                    -0.118523
k                    0.276553
pi                   0
a                    0
c                    -0.00553107
inv                  0.00553107
??? Error using ==> print_info
Blanchard Kahn conditions are not satisfied: no stable equilibrium

Error in ==> stoch_simul at 81
    print_info(info, options_.noprint);

Error in ==> dynaret at 150
info = stoch_simul(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

>>
数学好就是要天天学

23
ajia02 发表于 2012-12-9 09:54:10
路过学习一下!

24
yger 在职认证  发表于 2012-12-9 10:16:32
厉害,我只能瞻仰!

25
zhaojumping 发表于 2012-12-9 10:46:48
~~~~~~~~~~~~~~

26
Dylan890328 发表于 2012-12-9 10:59:08
zhangtao 发表于 2012-12-9 09:49
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
实在不知道模型错哪里了,你能帮我检验下推导过程吗

27
minixiangzhu 发表于 2012-12-9 14:57:03
你的方程最好完全线性化 ,这样赋初值全为零,比较整齐容易发现问题。  另:你的模型就是一个系统,不能够把别人系统中的方程拿过来应用或是对比。仔细重新推导即可。

28
sucheng199099 发表于 2012-12-9 16:25:47
rastila 发表于 2012-12-9 00:37
你模型设置错了,同时dynare code也没写完整, 改成 model(linear); 和 stoch_simul(periods = 200, order  ...
老师,我的dsge程序运行出现“syntax error, unexpected TIMES”是怎么一回事啊?
已有 1 人评分经验 收起 理由
rastila + 1 把code复制上来

总评分: 经验 + 1   查看全部评分

[img][/img]

29
rastila 在职认证  发表于 2012-12-9 18:40:10
你第六个方程的log(i)把系统爆掉了。还有,你至少还差两个forward-looking variable来稳定系统。

30
deng203 发表于 2012-12-9 19:01:04
看高人的解答

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-27 07:45