Learn R Programming

survout (version 0.1.0)

surv_multi: Modify the Output for a Multi-variable Survival Analysis.

Description

Create a table with the general multi-variable survival analysis results, including the HR (95 percent CI), P value.

Usage

surv_multi(...)

Value

a dataframe containing coxph output that includes variable names, HRs (95

Arguments

...

arguments will be passed to coxph

Examples

Run this code
Dat <- survival::lung
surv_multi(survival::Surv(time, status) ~ as.factor(sex) + age + meal.cal, data = Dat)

Run the code above in your browser using DataLab