全部版块 我的主页
论坛 经济学论坛 三区 宏观经济学
4915 5
2013-12-04
     dynare里能不能做多个冲击对一个变量的影响?比如利率冲击和技术冲击同时作用于产出时产出的变化?
请教高手指导一下啊!
二维码

扫码加我 拉你入群

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

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

全部回复
2013-12-5 16:04:04
同问
二维码

扫码加我 拉你入群

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

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

2014-2-11 20:29:02
当然可以。
二维码

扫码加我 拉你入群

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

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

2014-2-17 09:59:01
If you are doing 2nd approximation and IRF analysis, the following matlab could help you solve your problem.
yy is the IRF for all endogenous variables. The following are the way Dynare doing IRF calculation.
by default, replic = 50 ; long =40; drop =100; Chol_S are the standard deviation of all shocks, diagnoal.

yy=0;
for j=1:replic   %draw two shocks
    ex1(:,i_exo_var)=randn(long+drop,nxs)*chol_S;
    ex2 = ex1;
    %add one standard deviation of two shocks to exogenous shock path, assuming totally 4 shocks
     ex2(drop+1,:)=ex2(drop+1,:)+[0.01 0.01 0 0];
    y1=simult_(temps,oo_.dr,ex1,iorder); % using dynare built-in function to simulate the whole model
    y2=simult_(temps,oo_.dr,ex2,iorder);
    yy=yy+(y2(:,M_.maximum_lag+drop+1:end)-y1(:,M_.maximum_lag+drop+1:end));
end
yy=yy/replic;




if output is the 1st varaibles in declaration order, the yy(1,:) is the IRF of output respond to two shocks.
二维码

扫码加我 拉你入群

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

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

2014-3-22 19:41:16
帮忙第七来
二维码

扫码加我 拉你入群

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

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

2020-2-12 23:53:27
同问,楼主解决这个问题了吗?
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群