当前位置:网站首页>A row of code r shows the table of Cox regression model
A row of code r shows the table of Cox regression model
2022-07-07 04:49:00 【Mrrunsen】
In today's article , A function will be introduced , Realize one line of code Cox Table of regression model , As a memory and tribute to our predecessors !
First , Installation and loading related R package :
# install
install.packages("gtsummary")
# load
library(gtsummary)
library(survival)I will use {gtsummary} Data set in “trial”, First take a look at the overview :
summary(trial)
next step , Build a Cox The regression model :
cox_model <- coxph(Surv(ttdeath, death) ~ age + stage + trt, trial)Last , Tabulate the above model results :
tbl_regression(cox_model, exponentiate = TRUE)
All right. , Today's content is here .
If it helps , Remember to share it with those who need it

!
边栏推荐
- A series of shortcut keys for jetbrain pychar
- R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
- The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
- Jetson nano配置pytorch深度学习环境//待完善
- 日常工作中程序员最讨厌哪些工作事项?
- 程序员上班摸鱼,这么玩才高端!
- EasyCVR无法使用WebRTC进行播放,该如何解决?
- jvm是什么?jvm调优有哪些目的?
- 【线段树实战】最近的请求次数 + 区域和检索 - 数组可修改+我的日程安排表Ⅰ/Ⅲ
- Read of shell internal value command
猜你喜欢

Depth first traversal template principle of tree and graph

EasyCVR无法使用WebRTC进行播放,该如何解决?

程序员上班摸鱼,这么玩才高端!

Read of shell internal value command

R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators

In depth analysis of kubebuilder

System framework of PureMVC

英特尔与信步科技共同打造机器视觉开发套件,协力推动工业智能化转型

mpf2_线性规划_CAPM_sharpe_Arbitrage Pricin_Inversion Gauss Jordan_Statsmodel_Pulp_pLU_Cholesky_QR_Jacobi
![[team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp](/img/50/bfe7229d380a514c40f9f6822381c7.jpg)
[team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp
随机推荐
acwing 843. N-queen problem
未婚夫捐5亿美元给女PI,让她不用申请项目,招150位科学家,安心做科研!
C#使用西门子S7 协议读写PLC DB块
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
Win11控制面板快捷键 Win11打开控制面板的多种方法
C # use Siemens S7 protocol to read and write PLC DB block
九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3
leetcode 53. Maximum Subarray 最大子数组和(中等)
What work items do programmers hate most in their daily work?
Unit test asp Net MVC 4 Application - unit testing asp Net MVC 4 apps thoroughly
微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此
B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
软件测试之网站测试如何进行?测试小攻略走起!
食堂用户菜品关系系统(C语言课设)
AI 落地新题型 RPA + AI =?
Mathematical analysis_ Notes_ Chapter 10: integral with parameters
What if win11 pictures cannot be opened? Repair method of win11 unable to open pictures
SQL where multiple field filtering
Detect when a tab bar item is pressed
DFS and BFS concepts and practices +acwing 842 arranged numbers (DFS) +acwing 844 Maze walking (BFS)