楼主: alasaa
2038 2

[回归分析求助] 我在stcox回归后,使用stcoxgof,出现问题,请问该如何 save martingale residual? [推广有奖]

  • 10关注
  • 0粉丝

已卖:5份资源

博士生

25%

还不是VIP/贵宾

-

威望
0
论坛币
299 个
通用积分
1.0002
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
17587 点
帖子
135
精华
0
在线时间
208 小时
注册时间
2016-5-14
最后登录
2024-10-28

楼主
alasaa 发表于 2017-6-29 20:08:40 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我在stcox回归后,使用stcoxgof,出现如下问题,请问该如何 save martingale residuals??如何 specified on the stcox ??
谢谢老师!

. stcoxgof
stcox did not save martingale residuals.
mgale(newvars) option must have been specified on the stcox command
prior to using this command
r(198);

. stcoxgof
Martingale residuals must be saved in stcox to compute the added variable version
of the Gronnesby and Borgan test or Arjas like plots.
r(198);


二维码

扫码加我 拉你入群

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

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

关键词:Martingale Residual Martin stcox artin

沙发
007kimmy 发表于 2018-3-11 21:46:59
就是要先计算并保存mg  help predict
还有个方法:
https://stats.idre.ucla.edu/stata/seminars/stata-survival/#fit

stcox a b c 是你的原模型
predict cs, csnell 计算并保存cs残差
stset cs, failure(failure=1)
sts generate H=na
line H cs cs, sort xlab(0 1 to 4)

线条越接近45度线 cox模型拟合的越好

藤椅
张小白xiaobai 发表于 2020-11-10 20:18:30 来自手机
请问coxgof这个问题是如何解决的?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-15 16:40