全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
4635 9
2021-10-28
附件文章在使用空间双重差分时进行了平行趋势检验,比较了直接效应系数的差异。请教各位,如何在stata上实现这种检验及作图?原文“Fig. 3 plots the direct effect and the 95% confidence interval of Dk it with the spatial weight matrix ofW1. The horizontal axis is the number of years before and after the initiation of HSR operations. ”

我仿照常规did平行趋势检验写了如下命令:
gen policy = year-HSR
replace policy=-5 if policy<=-5
replace policy=10 if policy>=10

gen policy_d=policy+5
xsmle y ib5.policy_d , fe model(sdm) wmat(invdis) type(both) nolog effects


但结果无法计算出直接效应和间接效应(提示Warning: direct and indirect effects cannot be computed if factor variables are specified         option -effects- ignored. Notice that total effects can be obtained using -margins-)
后续使用coefplot命令作图也是空白,请问如何计算出直接效应,并把直接效应系数及置信区间作出图来?
附件列表
空间did平行趋势检验.png

原图尺寸 213.84 KB

空间did平行趋势检验.png

二维码

扫码加我 拉你入群

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

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

全部回复
2022-11-11 15:57:17
请问楼主解决了吗
二维码

扫码加我 拉你入群

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

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

2023-3-17 23:36:18
请问楼主最后解决了吗
二维码

扫码加我 拉你入群

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

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

2023-3-26 10:18:46
楼主解决了吗
二维码

扫码加我 拉你入群

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

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

2023-11-9 13:33:07
请问sdid的平行趋势检验做的方法是和did的方法一样吗?有朋友要一起交流学习吗?我的qq:1849383905
二维码

扫码加我 拉你入群

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

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

2023-11-9 14:03:02
请问楼主后续使用coefplot命令作图,如何计算出直接效应,并把直接效应系数及置信区间作出图来?
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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