15022297685 发表于 2020-10-10 16:07 
同求答案呀
虽然不建议这样做,但可试试
- // Single threshold model
- xthreg i q2 q3 d1 qd1, rx(c1 q1) qx(d1) thnum(1) grid(100) trim(0.05) bs(100)
- // Figure 1: plot the LR statistic vs threshold
- _matplot e(LR), columns(1 2) yline(7.35, lpattern(dash)) ///
- connect(direct) msize(small) mlabp(0) mlabs(zero) ///
- ytitle("LR Statistics") xtitle("First Threshold") recast(bar) barwidth(0.000001)
- graph export "log\hansen99je-LR1.png", as(png) replace
复制代码基本上,将原先之 recast(line) 换成 recast(bar) barwidth(0.000001)。