楼主: dongji87
8670 12

[经济学基础] 关于一个dsge模型的探讨 [推广有奖]

  • 1关注
  • 2粉丝

已卖:197份资源

博士生

74%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
7.9396
学术水平
0 点
热心指数
1 点
信用等级
1 点
经验
18394 点
帖子
154
精华
0
在线时间
473 小时
注册时间
2009-5-27
最后登录
2025-4-14

楼主
dongji87 发表于 2011-9-10 10:29:10 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
大家好,我在用dynare求解自己的模型时,遇到了下面的程序问题,请问该怎么解决?
    另外,我的模型中假设所有变量平稳,做bayes估计时,按照如下方法处理现实数据:对于收入,贷款,我取log,然后做x12季节调整,最后hp滤波,这样得到的变量对应于模型中相应变量取对数(这里对吗?);对于cpi,我只做季节调整;对于存款利率,我没有做任何处理,大家看这样处理有什么不妥吗?


程序问题如下:

>> dynare fs2000

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.2.1).
Starting preprocessing of the model file ...
Substitution of exo lags: added 1 auxiliary variables and equations.
Found 30 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:

Y                                 0.00625684
C                                 0.0185632
I                                 -0.0123064
K                                 -0.492254
Ke                                0.0143672
D                                 0.137502
L                                 0.644124
H                                 0.377415
He                                0.0759695
Hb                                0.301446
pia                               1.012
pi_st                             1
r                                 0.1411
rf                                0.035101
rl                                0.0374653
w                                 0.0474393
mc                                0.9
kap                               1.27933
lam                               0.15
eta                               53.87
g1                                1.45842
g2                                1.62046
vp                                1
d                                 1
A                                 2.5
Y_obs                             -5.07408
rd_obs                            0.035101
L_obs                             -0.439865
pia_obs                           1.012

EIGENVALUES:
         Modulus             Real        Imaginary

               0               -0                0
      1.156e-016       1.156e-016                0
             0.8              0.8                0
            0.85             0.85                0
            0.85             0.85                0
            0.85             0.85                0
          0.9707           0.9707                0
           1.037            1.037                0
           1.263            1.263                0
             Inf              Inf                0
             Inf              Inf                0
             Inf              Inf                0
             Inf              Inf                0
             Inf              Inf                0
             Inf              Inf                0


There are 8 eigenvalue(s) larger than 1 in modulus
for 8 forward-looking variable(s)

The rank condition is verified.


You did not declare endogenous variables after the estimation command.
Loading 58 observations from data_fs2000.m


SOLVE: maxit has been reached

SOLVE: maxit has been reached
Error in computing likelihood for initial parameter values
??? Error using ==> print_info at 52
Impossible to find the steady state. Either the model doesn't have a unique steady state of the guess values are too far from the solution

Error in ==> initial_estimation_checks at 101
    print_info(info, options_.noprint)

Error in ==> dynare_estimation_1 at 122
initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);

Error in ==> dynare_estimation at 62
    dynare_estimation_1(var_list,varargin{:});

Error in ==> fs2000 at 399
dynare_estimation(var_list_);

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


恳请各位指点,谢谢!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:dsge模型 DSGE observations Perturbation substitution equation solution 模型 程序 贷款

沙发
xiaolanliluo 发表于 2011-9-11 10:41:36
顶一下,碰到同样的问题!

藤椅
yammy2008 发表于 2011-9-12 23:53:21
应在etimation前面声明观测变量

板凳
dongji87 发表于 2011-9-13 16:23:04
yammy2008 发表于 2011-9-12 23:53
应在etimation前面声明观测变量
您好,estimation前面写出了观测变量,否则无法做出估计,但还是出现问题。

报纸
seujmj 发表于 2012-1-26 00:20:29
你的问题解决了吗?我的看法是,是要将hp滤波后的冲击项序列乘以100让其变大后再代入到dynare中计算,否则hp滤波后的数字太小,信息会出现失真。

另外有一个疑问,我看到的文献是, dynare输入的所有观测量序列都必须是稳态(stationary)序列,你对cpi和利率不做任何处理直接输入dynare,虽然最后还可以有结果,但这样做是否妥当,是否会有问题?

地板
coolsky2004 发表于 2012-3-7 22:25:45
我路径设置对了,额看程序还是出错。大家帮我看看啊。
>> DYNARE c:\dynare\4.2.4\WORK\EXAMPLE2.MOD

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.2.4).
Starting preprocessing of the model file ...
Found 6 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
- order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

??? Error: Unexpected MATLAB operator.

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

7
coolsky2004 发表于 2012-3-7 22:27:21
运行任何一个程序,都会报错,在120行。
??? Error: Unexpected MATLAB operator.

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

8
coolsky2004 发表于 2012-3-7 23:12:11
>> dynare example2.mod

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

??? Error using ==> dynare
DYNARE: can't open example2.mod

>>

9
wangfaxian 发表于 2012-5-2 17:30:05
用computer_mode=6估计
宏观经济的辛勤耕耘者

10
一夫 发表于 2012-7-28 19:34:36
稳态值为负数有问题吧?
杨昆,武汉大学经济与管理学院07级政治经济学硕士研究生,研究方向:制度经济学和企业理论. email: yang2005kun@yahoo.com.cn博客:blog.sina.com.cn/kun19850720

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

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-1 06:54