请选择 进入手机版 | 继续访问电脑版
楼主: momingqimiao7
68221 298

合成控制法原理详解以及Stata命令和案例     [推广有奖]

yaoboshi 发表于 2017-6-10 16:19:49 |显示全部楼层 |坛友微信交流群
muzhi2680 发表于 2017-6-4 21:18
这个还不错,搞定论文了
你装完命令带smoking.dta文件吗

使用道具

momingqimiao7 在职认证  学生认证  发表于 2017-6-12 08:41:00 |显示全部楼层 |坛友微信交流群
yaoboshi 发表于 2017-6-10 16:18
楼主,为什么安装了命令后, . sysuse smoking (打开数据集)找不到smoking文件?到安装路径去找好像也没有 ...
如果没有找到数据的话,输入命令findit synth找到synth这个点击进去
23.png



1.png

点击 click here to get 下载



已有 1 人评分学术水平 热心指数 信用等级 收起 理由
十七里香 + 5 + 5 + 5 精彩帖子

总评分: 学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

maodongjun 发表于 2017-7-4 01:37:55 |显示全部楼层 |坛友微信交流群
这就是安慰及检验的命令?骗鬼呢?!
(3)安慰剂检验
use "F:\城市名片效应:来自中国城市更名的证据\实证分析-灯光.dta", clear
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1997) sum(1998) sum(1999) sum(2000) sum(2004) sum(2005) sum(2008), trunit(140) counit(53(1)139, 141(1)280) trperiod(2009) fig
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1997) sum(1998) sum(1999) sum(2000) sum(2001),trunit(151) counit(53(1)150, 152(1)280) trperiod(2001) fig
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1997) sum(1998) sum(1999) sum(2000) sum(2001),trunit(121) counit(53(1)120, 122(1)280) trperiod(2001) fig
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1998) sum(2000),trunit(112) counit(53(1)111, 113(1)280) trperiod(2001) fig
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1998),trunit(112) counit(53(1)111, 113(1)280) trperiod(1999) fig
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1997) sum(2000) sum(2002) sum(2005),trunit(2) counit(60(1)280) trperiod(2007) fig
synth sum count perimeter population pergdp_inflation industry investment_gdp consumption_gdp sum(1997) sum(2000) sum(2002) sum(2005) sum(2006) sum(2007),trunit(146) counit(60(1)145, 147(1)280) trperiod(2007) fig

使用道具

maodongjun 发表于 2017-7-4 01:41:18 |显示全部楼层 |坛友微信交流群
不要被所谓的stata命令忽悠了!还是去微信上找陈强的公众号,里头有SCM的三期讲解,附带命令解释。结合synth自带的help文件,自学最好!
以下是帮助文件中自带的安慰剂检验命令!
Example 5 � Run placebo in space:
    . tempname resmat
        forvalues i = 1/4 {
        synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) , trunit(`i') trperiod(1989) xperiod(1980(1)1988)
        matrix `resmat' = nullmat(`resmat') \ e(RMSPE)
        local names `"`names' `"`i'"'"'
        }
        mat colnames `resmat' = "RMSPE"
        mat rownames `resmat' = `names'
        matlist `resmat' , row("Treated Unit")

使用道具

maodongjun 发表于 2017-7-4 01:43:45 |显示全部楼层 |坛友微信交流群
不要被忽悠了!
去微信上找陈强的公众号,里头有三期SCM的讲解,和命令说明。
结合synth自带的help文件,自学就可以了。
看看,这是帮助文件中自带的安慰及检验命令!
Example 5 : Run placebo in space:
    . tempname resmat
        forvalues i = 1/4 {
        synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) , trunit(`i') trperiod(1989) xperiod(1980(1)1988)
        matrix `resmat' = nullmat(`resmat') \ e(RMSPE)
        local names `"`names' `"`i'"'"'
        }
        mat colnames `resmat' = "RMSPE"
        mat rownames `resmat' = `names'
        matlist `resmat' , row("Treated Unit")

使用道具

maodongjun 发表于 2017-7-4 01:46:25 |显示全部楼层 |坛友微信交流群
liminmin1994 发表于 2017-5-8 18:53
有安慰剂检验的stata命令吗
不要被忽悠了!
去微信上找陈强的公众号,里头有三期SCM的讲解,和命令说明。
结合synth自带的help文件,自学就可以了。
看看,这是帮助文件中自带的安慰及检验命令!
Example 5 : Run placebo in space:
    . tempname resmat
        forvalues i = 1/4 {
        synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) , trunit(`i') trperiod(1989) xperiod(1980(1)1988)
        matrix `resmat' = nullmat(`resmat') \ e(RMSPE)
        local names `"`names' `"`i'"'"'
        }
        mat colnames `resmat' = "RMSPE"
        mat rownames `resmat' = `names'
        matlist `resmat' , row("Treated Unit")

使用道具

maodongjun 发表于 2017-7-4 01:47:09 |显示全部楼层 |坛友微信交流群
不要被忽悠了!
去微信上找陈强的公众号,里头有三期SCM的讲解,和命令说明。
结合synth自带的help文件,自学就可以了。
看看,这是帮助文件中自带的安慰及检验命令!
Example 5 : Run placebo in space:
    . tempname resmat
        forvalues i = 1/4 {
        synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) , trunit(`i') trperiod(1989) xperiod(1980(1)1988)
        matrix `resmat' = nullmat(`resmat') \ e(RMSPE)
        local names `"`names' `"`i'"'"'
        }
        mat colnames `resmat' = "RMSPE"
        mat rownames `resmat' = `names'
        matlist `resmat' , row("Treated Unit")
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
Starkly + 1 + 1 + 1 精彩帖子

总评分: 论坛币 + 1  学术水平 + 1  热心指数 + 1   查看全部评分

使用道具

momingqimiao7 在职认证  学生认证  发表于 2017-8-6 21:50:05 |显示全部楼层 |坛友微信交流群
呵呵。。一个都没买过的人在瞎喊什么。。
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
十七里香 + 5 + 5 + 5 精彩帖子

总评分: 学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

momingqimiao7 在职认证  学生认证  发表于 2017-8-6 21:50:25 |显示全部楼层 |坛友微信交流群

使用道具

momingqimiao7 在职认证  学生认证  发表于 2017-8-6 21:50:55 |显示全部楼层 |坛友微信交流群
{:2_27:}
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
十七里香 + 5 + 5 + 5 精彩帖子

总评分: 学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

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

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 00:29