全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
51282 22
2017-07-09
Threshold estimator (level = 95):
-----------------------------------------------------
     model |    Threshold         Lower         Upper
-----------+-----------------------------------------
      Th-1 |       8.6500        8.6300        8.6900
     Th-21 |       9.0300        8.7000        9.1400
     Th-22 |       9.1400        9.0300        9.1500
      Th-3 |       8.6500        8.4400        8.6900
-----------------------------------------------------
option / not allowed
r(198);

end of do-file

r(198);


二维码

扫码加我 拉你入群

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

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

全部回复
2017-7-9 22:19:29
求帮助呀,感谢各位啦
二维码

扫码加我 拉你入群

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

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

2017-7-10 16:51:31
月宫里的白兔 发表于 2017-7-9 22:19
求帮助呀,感谢各位啦
把你的指令与其他讯息一起发出来以供判断!
二维码

扫码加我 拉你入群

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

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

2017-7-10 18:48:30
黃河泉 发表于 2017-7-10 16:51
把你的指令与其他讯息一起发出来以供判断!
xthreg perinatal_mortality urbanization_rate  infec ///
weather medical_bed doctor  read_rate older_rate sex_ratio ///
natural_growth_rate  sanitary_toilets  clear_water ///
city_dh  rural_dh  disease_prevention  per_gdp, rx(g_f) qx(g_f) thnum(1)  grid(400)///
trim(0.01) bs(100 )
sjlog close,replace

xthreg perinatal_mortality urbanization_rate  infec ///
weather medical_bed doctor  read_rate older_rate sex_ratio ///
natural_growth_rate  sanitary_toilets  clear_water ///
city_dh  rural_dh  disease_prevention  per_gdp , rx(g_f) qx(g_f) thnum(2) trim(0.01 0.05) grid(400) bs(100 100)

* triple threshold model given the result above
sjlog using xthreg2, replace
xthreg perinatal_mortality urbanization_rate  infec ///
weather medical_bed doctor  read_rate older_rate sex_ratio ///
natural_growth_rate  sanitary_toilets  clear_water ///
city_dh  rural_dh  disease_prevention  per_gdp, rx(g_f) qx(g_f) thnum(3) grid(400) ///
trim(0.01 0.01 0.05) bs(100 100 100) thgiven nobslog noreg
sjlog close, replace

* plot the LR statistic vs threshold
sjlog using xthreg3, replace
_matplot e(LR21), columns(1 2) yline(7.35, lpattern(dash)) ///
        connect(direct) msize(small) mlabp(0) mlabs(zero) ///
        ytitle("LR Statistics") xtitle("First Threshold") recast(line) name(LR21) nodraw
_matplot e(LR22), columns(1 2) yline(7.35, lpattern(dash)) ///
        connect(direct) msize(small) mlabp(0) mlabs(zero) ///
        ytitle("LR Statistics") xtitle("Second Threshold") recast(line) name(LR22) nodraw
graph combine LR21 LR22, cols(1)       
sjlog close, replace

数据stata11格式数据
graduate1log.dta
大小:(37.87 KB)

 马上下载



二维码

扫码加我 拉你入群

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

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

2017-7-10 19:02:14
月宫里的白兔 发表于 2017-7-10 18:48
xthreg perinatal_mortality urbanization_rate  infec ///
weather medical_bed doctor  read_rate ol ...
1. 这大概是我看过最长的面板门槛回归,建议从简单的情况开始尝试!2. 到底是执行到哪里出问题,请指出来!
二维码

扫码加我 拉你入群

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

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

2017-7-10 19:23:46
黃河泉 发表于 2017-7-10 19:02
1. 这大概是我看过最长的面板门槛回归,建议从简单的情况开始尝试!2. 到底是执行到哪里出问题,请指出来 ...
做单门槛分析的时候显示这个option / not allowed了,双门槛的时候正常了,包括门槛效应分析和系数都列出来了,三门槛有点不正常。等下我上传一下回归分析的截图
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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