全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5508 16
2015-10-25
在使用王群勇老师的xthreg命令绘制LR图中出现了无法识别命令问题:unrecognized command: matplot,不知道是不是需要加载什么软件包么?希望得到解答!谢过!
二维码

扫码加我 拉你入群

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

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

全部回复
2015-10-25 08:36:08
谁说的作图命令是
matplot???
二维码

扫码加我 拉你入群

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

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

2015-10-25 08:40:51
蓝色 发表于 2015-10-25 08:36
谁说的作图命令是
matplot???
你好,我也是初学,很多不懂之处,请多多指教。我现在把王老师的程序贴出来,希望得到解答:
Examples

    Setup
        . use hansen1999
    Estimate a single-threshold model
        . xthregi q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(1) trim(0.01) grid(400) bs(300)
    Estimate a triple-threshold model given the estimated result above
        . xthregi q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(3) trim(0.01 0.01 0.05) bs(0 300 300) thgiven
        . xthregi q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(3) trim(0.01 0.01 0.05) grid(400) bs(300 300 300)

    Estimate a triple-threshold model directly
        . xthregi q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(3) trim(0.01 0.01 0.05) bs(300 300 300)
绘图:
    Plot the confidence interval using likelihood-ratio (LR) statistics
        . _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)

Author
Qunyong Wang
    Institute of Statistics and Econometrics
Nankai University
    Tianjin, China
    QunyongWang@outlook.com
二维码

扫码加我 拉你入群

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

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

2015-10-25 08:44:28
_matplot

人家的下画线为什么不要了呢
二维码

扫码加我 拉你入群

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

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

2015-10-25 08:58:58
蓝色 发表于 2015-10-25 08:44
_matplot

人家的下画线为什么不要了呢
哈哈,原来是这样,谢谢谢谢!!
二维码

扫码加我 拉你入群

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

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

2015-10-25 09:02:29
蓝色 发表于 2015-10-25 08:44
_matplot

人家的下画线为什么不要了呢
我设置了一个门槛值,现在又出现 这个问题。这是?
. _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
matrix should have at least 2 columns
r(198);
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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