黃河泉 发表于 2017-5-26 11:26
我搞不清楚你要做什么,所以很难有所较精确之建议!我知道有门槛或结构性转变模型可以估计你所谓的"断点" ...
黃河泉老师您好,我尝试了您建议的面板模型,但是,请问寻找断点需要多少数据啊?
我有1700个案例,结果stata说我样本量太小。。。(我这是一组生存时间的数据)
步长都改成1了,也还不行。。。是哪里错了。。。
谢谢老师!
程序如下
. xtthres survivor, th(outcome) d(id)
Begin Time: 28 May 2017 12:43:57
sample size too small.
r(198);
. xtthres survivor, th(outcome) d(id) minobs(1)
Begin Time: 28 May 2017 12:44:10
sample size too small.
r(198);
. xtthres survivor, th(outcome) bs1(1) d(id)
Begin Time: 28 May 2017 12:57:10
sample size too small.
r(198);