楼主: ml19930812
1914 4

[回归分析求助] 求助stata大神:做广义倾向得分匹配出现valid syntax [推广有奖]

  • 0关注
  • 0粉丝

小学生

42%

还不是VIP/贵宾

-

威望
0
论坛币
710 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
39 点
帖子
4
精华
0
在线时间
9 小时
注册时间
2012-9-27
最后登录
2017-3-13

楼主
ml19930812 发表于 2017-3-12 23:36:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我用doseresponse,在stata中输入:gen cut=0.01 if subsidy<=0.01
replace cut=0.02 if subsidy>0.01 & subsidy<=0.02
replace cut=0.5 if subsidy>0.02
tab cut
matrix define tp=(10\20\30\40\50\60\70\80\90\100)
doseresponse size prof drd age export gov,outcome(tech) t(subsidy) gpscore(pscore) predict(hat_treat) sigma(sd) cutpoints(cut) index(p50) nq_gps(5) dose_response(dose_response) t_transf(ln)  tpoints(tp) delta(1) reg_type_t(quadratic) reg_type_gps(quadratic) interaction(1) bootstrap(yes) boot_reps(100)
filename("output") analysis(yes) graph("graph_output") detail
可是输入的命令时候呈现结果错误 invalid syntax:

请问是什么原因?谢谢各位大神!


二维码

扫码加我 拉你入群

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

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

关键词:求助stata SYNTAX 倾向得分匹配 Valid Stata export sigma

沙发
ml19930812 发表于 2017-3-12 23:39:36
输出结果如下:

********************************************
ESTIMATE OF THE GENERALIZED PROPENSITY SCORE
********************************************

Generalized Propensity Score
By agreement we assume that the logarithm of 0 is 0

******************************************************
Algorithm to estimate the generalized propensity score
******************************************************



Estimation of the propensity score

The log transformation of the treatment variable subsidy is used

                              T
-------------------------------------------------------------
      Percentiles      Smallest
1%    -8.316958      -8.917275
5%    -6.945942      -8.721264
10%     -6.03387      -8.645988        Obs                 672
25%    -5.079773      -8.529114       Sum of Wgt.         672

50%    -4.222722                            Mean          -4.167873
                                   Largest       Std. Dev.      1.618843
75%    -3.385871              0
90%    -2.359686              0       Variance       2.620653
95%            0                   0       Skewness       .3090964
99%            0                   0       Kurtosis       3.966695

invalid syntax
r(198);

.
. filename("output") analysis(yes) graph("graph_output") detail
command filename is unrecognized
r(199);

藤椅
cara156520 发表于 2018-11-1 20:32:20
您好,想问下cut后面的分组是随意设定的嘛

板凳
jty723 发表于 2018-12-17 16:44:23
cara156520 发表于 2018-11-1 20:32
您好,想问下cut后面的分组是随意设定的嘛
兄弟搞懂了吗?我也想问

报纸
jty723 发表于 2018-12-17 16:45:20
求问,我也是用这个命令,结果显示“1 group found, 2 required r(420);”求问什么情况?

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-26 06:46