当前位置:网站首页>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
!
边栏推荐
- NTU notes 6422quiz review (1-3 sections)
- [practice leads to truth] is the introduction of import and require really the same as what is said on the Internet
- Win11远程桌面连接怎么打开?Win11远程桌面连接的五种方法
- sscanf,sscanf_s及其相关使用方法「建议收藏」
- 视频融合云平台EasyCVR视频广场左侧栏列表样式优化
- ACL2022 | 分解的元学习小样本命名实体识别
- A picture to understand! Why did the school teach you coding but still not
- ESG Global Leaders Summit | Intel Wang Rui: coping with global climate challenges with the power of science and technology
- Deeply cultivate the developer ecosystem, accelerate the innovation and development of AI industry, and Intel brings many partners together
- Data security -- 12 -- Analysis of privacy protection
猜你喜欢
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
DFS and BFS concepts and practices +acwing 842 arranged numbers (DFS) +acwing 844 Maze walking (BFS)
EasyCVR无法使用WebRTC进行播放,该如何解决?
Win11截图键无法使用怎么办?Win11截图键无法使用的解决方法
C # use Siemens S7 protocol to read and write PLC DB block
Easycvr cannot be played using webrtc. How to solve it?
窗口可不是什么便宜的东西
What if win11 pictures cannot be opened? Repair method of win11 unable to open pictures
Win11玩绝地求生(PUBG)崩溃怎么办?Win11玩绝地求生崩溃解决方法
Win11 control panel shortcut key win11 multiple methods to open the control panel
随机推荐
组织实战攻防演练的5个阶段
Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market
Web3 社区中使用的术语
各路行业大佬称赞的跨架构开发“神器”,你get同款了吗?
Win11截图键无法使用怎么办?Win11截图键无法使用的解决方法
Leetcode notes
案例大赏:英特尔携众多合作伙伴推动多领域AI产业创新发展
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
[team learning] [34 issues] scratch (Level 2)
C # use Siemens S7 protocol to read and write PLC DB block
Windows are not cheap things
抖音或将推出独立种草社区平台:会不会成为第二个小红书
How to solve the problem of adding RTSP device to easycvr cluster version and prompting server ID error?
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
一度辍学的数学差生,获得今年菲尔兹奖
Vscode automatically adds a semicolon and jumps to the next line
Introduction to namespace Basics
How to conduct website testing of software testing? Test strategy let's go!
DFS and BFS concepts and practices +acwing 842 arranged numbers (DFS) +acwing 844 Maze walking (BFS)
这项15年前的「超前」技术设计,让CPU在AI推理中大放光彩