当前位置:网站首页>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

!
边栏推荐
- 抖音或将推出独立种草社区平台:会不会成为第二个小红书
- Structure actual training camp | after class homework | module 6
- AI landing new question type RPA + AI =?
- jvm是什么?jvm调优有哪些目的?
- Win11截图键无法使用怎么办?Win11截图键无法使用的解决方法
- Some understandings about 01 backpacker
- 微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此
- 九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3
- C # use Siemens S7 protocol to read and write PLC DB block
- 窗口可不是什么便宜的东西
猜你喜欢

In depth analysis of kubebuilder

namespace基础介绍

Oracle -- 视图与序列

九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3

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

Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"

kivy教程之设置窗体大小和背景(教程含源码)

System framework of PureMVC

AI landing new question type RPA + AI =?

Programmers go to work fishing, so play high-end!
随机推荐
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
EasyCVR平台接入RTMP协议,接口调用提示获取录像错误该如何解决?
mpf2_线性规划_CAPM_sharpe_Arbitrage Pricin_Inversion Gauss Jordan_Statsmodel_Pulp_pLU_Cholesky_QR_Jacobi
英特尔David Tuhy:英特尔傲腾技术成功的原因
acwing 843. n-皇后问题
What about the collapse of win11 playing pubg? Solution to win11 Jedi survival crash
Jetson nano configures pytorch deep learning environment / / to be improved
Implementation of JSTL custom function library
What is Web3
Thesis landing strategy | how to get started quickly in academic thesis writing
Structure actual training camp | after class homework | module 6
NTU notes 6422quiz review (1-3 sections)
Video fusion cloud platform easycvr video Plaza left column list style optimization
Section 1: (3) logic chip process substrate selection
关于01背包个人的一些理解
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
计数排序基础思路
What work items do programmers hate most in their daily work?
leetcode 53. Maximum subarray maximum subarray sum (medium)
You can't sell the used lithography machine to China! The United States unreasonably pressured the Dutch ASML, and domestic chips were suppressed again