cox-regression - coxph的输出中缺少R平方
问题描述
我是 R 新手,正在上一门在线课程。我正在运行 cox 模型,但在输出中没有得到 r 平方值。有谁知道为什么?
cox2 <- coxph(Surv(fu_time,death) ~ age_cat)
> summary(cox2)
Call:
coxph(formula = Surv(fu_time, death) ~ age_cat)
n= 1000, number of events= 492
coef exp(coef) se(coef) z Pr(>|z|)
age_catUnder 65 -1.4264 0.2402 0.2402 -5.938 2.88e-09 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
age_catUnder 65 0.2402 4.164 0.15 0.3846
Concordance= 0.549 (se = 0.007 )
Likelihood ratio test= 56.34 on 1 df, p=6e-14
Wald test = 35.26 on 1 df, p=3e-09
Score (logrank) test = 41.66 on 1 df, p=1e-10
解决方案
R 包是“活的”,它们会随着时间而变化。形成包“survival”的 2.44 版,summary.coxph 不再报告 R2。您可以在“2.44 版更改”中阅读原因:
Nagelkirke R^2 已从 summary.coxph 中删除。这种措施的缺点是众所周知的,一致性是更好的措施。
推荐阅读
- android - XML 动画只工作一次
- javascript - 我使用什么代码来更改当前页面的 URL,但实际上并未转到该站点
- r - 在排序图中重叠文本标签 - 基础 R
- json - 通过 Lambda 在 DynamoDB 中发布 JSON
- python - 将 JSON 数据放入结构化输出
- docusignapi - DocuSign ID 使用嵌入式签名检查通过 JAVA SDK 发送的文档
- sed - 将其作为 sed 脚本运行的正确语法
- node.js - Nexus 3 作为 npm 存储库找不到一些依赖项:npm ERR!404 未找到:
- python - gRPC Python - 如何为客户端添加空闲时间
- animation - 3d 模型在 powerpoint 2016 中保存后缺少动画功能的效果