全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
6037 13
2018-02-01
stata用diff命令做kernel PSM的DID,做出来的结果感觉和陈强老师那本书上列示的结果不一样,感觉有点怪。我用的是有十一年的面板数据,我的命令是diff houseprice,treat(treated) period(after) id(code4) kernel cov(pergdp secondary tertiary loan real_estate fixed_asset deposit) rep logit sup test。命令都是diff命令中的实例,然后我的期数为11期,因为每年都会有几个城市开通机场,想看看其对房价的影响,但是出来的结果是这样的:


二维码

扫码加我 拉你入群

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

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

全部回复
2018-2-1 11:55:02
. diff houseprice,treat(treated) period(after) id(code4) kernel cov(pergdp ///
>  secondary tertiary loan real_estate fixed_asset deposit) rep logit sup test
    Report - Propensity score estimation with logit command
    Atention: _pscore is estimated at baseline

Iteration 0:   log likelihood = -1432.3021
Iteration 1:   log likelihood = -1355.2746
Iteration 2:   log likelihood = -1354.4134
Iteration 3:   log likelihood = -1354.4113

Logistic regression                               Number of obs   =       2074
                                                          LR chi2(7)      =     155.78
                                                          Prob > chi2     =     0.0000
Log likelihood = -1354.4113                  Pseudo R2       =     0.0544

------------------------------------------------------------------------------
     treated |      Coef.       Std. Err.        z       P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      pergdp |  -.0626399   .0272417    -2.30   0.021    -.1160327    -.009247
   secondary |   5.081141   .6769763     7.51   0.000     3.754292     6.40799
    tertiary |       5.85948   1.012762     5.79   0.000     3.874504    7.844457
        loan |     -.2268431   .1413841    -1.60   0.109    -.5039507    .0502646
real_estate |   5.680924   1.160947     4.89   0.000      3.40551    7.956339
fixed_asset |  -1.652177   .2364751    -6.99   0.000    -2.115659   -1.188694
     deposit |    -.1746447   .2030676    -0.86   0.390    -.5726499    .2233606
       _cons |    -3.403146   .6025458    -5.65   0.000    -4.584115   -2.222178
------------------------------------------------------------------------------
TWO-SAMPLE T TEST
    Test on common support

Number of observations (baseline): 2074
            Before         After   
   Control: 963             -           963
   Treated: 1111          -           1111
               2074           -

t-test at period = 0:
--------------------------------------------------------------------------------
> --------------
Weighted Variable(s) |   Mean Control   | Mean Treated |    Diff.   |   |t|   |
>  Pr(|T|>|t|)
---------------------+------------------+--------------+------------+---------+-
> --------------
houseprice           | 2.764            | 3.085        | 0.321      |  3.85   |
> 0.0001***
pergdp               | 2.612            | 2.770        | 0.158      |  1.68   |
> 0.0937*
secondary            | 0.505            | 0.506        | 0.001      |  0.27   |
> 0.7898
tertiary             | 0.352            | 0.354        | 0.002      |  0.50   |
> 0.6193
loan                 | 0.711            | 0.719        | 0.008      |  0.43   |
> 0.6703
real_estate          | 0.081            | 0.082        | 0.002      |  0.64   |
> 0.5231
fixed_asset          | 0.581            | 0.580        | -0.001     |  0.16   |
> 0.8724
deposit              | 0.673            | 0.666        | -0.008     |  0.65   |
> 0.5134
--------------------------------------------------------------------------------
> --------------
*** p<0.01; ** p<0.05; * p<0.1
Attention: option kernel weighs variables in cov(varlist)
Means and t-test are estimated by linear regression
二维码

扫码加我 拉你入群

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

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

2018-2-1 11:56:03
请问大家我的结果是不是有问题啊?原因在哪里?
二维码

扫码加我 拉你入群

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

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

2018-2-2 11:14:20
我最近也在使用PSM法,你这个命令我还真不太懂,可以说的再详细一点吗?
二维码

扫码加我 拉你入群

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

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

2018-3-14 20:29:07
楼主,你的问题解决了么,我先也是和你出现了一样的问题,请问你是怎么解决的?谢谢。
二维码

扫码加我 拉你入群

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

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

2018-3-15 17:40:58
塞外晓木匠 发表于 2018-2-1 11:55
. diff houseprice,treat(treated) period(after) id(code4) kernel cov(pergdp ///
>  secondary tertiar ...
根据你讲的"因为每年都会有几个城市开通机场",我怀疑你不可以用 diff 来估计你的模型,如果我没误解,diff 指令需要大家"同一时间"开通 (我指的是 treatment group)。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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