搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  High-speed rail and CO2 emissions in urban China_ A spatial difference-in-differ.pdf
资料下载链接地址: https://bbs.pinggu.org/a-3562817.html
附件大小:
附件文章在使用空间双重差分时进行了平行趋势检验,比较了直接效应系数的差异。请教各位,如何在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命令作图也是空白,请问如何计算出直接效应,并把直接效应系数及置信区间作出图来?


    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

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

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

GMT+8, 2026-1-30 01:31