教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 实用模板 >

STATA实用学习笔记(7)

来源:网络收集 时间:2026-08-10
导读: 24 a1 = ln(1.52647) = 0.4229578 The coefficient on bearings = ln(0.0636433) = -2.754461 The load coefficient is significantly positive implying that the machines fail more quickly (higher hazard rate

24

a1 = ln(1.52647) = 0.4229578

The coefficient on bearings = ln(0.0636433) = -2.754461

The load coefficient is significantly positive implying that the machines fail more quickly (higher hazard rate) when they are under greater stress

The bearings coefficient is significantly negative implying that the machines fail less quickly (lower hazard rate) when they use the new-type of bearing.

? 如果想让系统报告系数而不是H(T)系数,可使用以下命令

stcox load bearings, nohr

5、 解决ties问题的模型之一:breslow

? The Breslow method is very fast and is the default method that STATA uses for resolving

ties.

? 如果生存时间相同时,就形成一个ties. ? 命令集:stcox load bearings, breslow ? stcox load bearings, efron 6、 解决ties问题的模型之二:efron

7、 该方法比上一个方法更准确,但用时较长。将两个同样的死亡时间各分0.5的可能

性。

8、 当存在censoring时,即并不是所且有的样本都死亡时,需要在命令中加选项。

? stset failtime, failure(failed)

The failtime variable gives the time of failure or censoring The failed variable indicates whether failure or censoring occurred STATA assumes censoring if failed equals zero or is set to missing

9、 以上均是处理一个事件只占一行的情况,当事件某一特性改变时,就需要多行来描

述。这时需要在告诉系统以下数据为生存数据的命令中加入选项,事件代码 ? stset t, id(patid) failure(died)

10、 当Left-censoring occurs,这时需在说明生存命令中加入开始时间变量

? stset end, id(id) failure(died) enter(begin)

11、 当中间部分时间的数据缺失时的处理:需要说明死亡时间、变量标识,死亡标识,

开始时间。

? stset end, id(id) failure(died) enter(begin) 12、 为消除heteroscedasticity and time-series dependence ,可以在回归命令的最后加上

robust和cluster().

? stcox x1, robust cluster(id)

25

STATA实用学习笔记(7).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/519856.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)