Skip to contents

Quick Start

These functions launch template scripts to help you get started.

quick_start()
Launch Example Survival Analysis Script using the easy_lung Data Set
quick_start2()
Launch Example Survival Analysis Script using the easy_bc Data Set
quick_start3()
Launch Example Survival Analysis Script using the easy_adtte Data Set

Example data sets

These example data sets are provided to help you explore package functionality.

easy_adtte
Formatted Copy of ggsurvfit::adtte
easy_bc
Formatted Copy of flexsurv::bc
easy_lung
Formatted Copy of survival::lung

Main functions

These functions are used to perform survival analysis.

inspect_surv_data()
Inspect Survival Data
get_km()
Generate Kaplan-Meier estimates
test_ph()
Test Proportional Hazards Assumption
fit_models()
Fit Survival Models
predict_and_plot()
Predict and Plot Fitted Models
predict(<fit_models>)
Predict method for fit_models
plot(<fit_models>)
Plot method for fit_models

These functions are used to print various stages of survival analysis.

Individual plot functions

These functions are used to plot various stages of survival analysis.

plot_cloglog()
Cumulative Log Log Plot
plot_km()
Plot Kaplan-Meier Data
plot_schoenfeld()
Plot Schoenfeld Residuals

Themes

These functions are used to apply themes to plots.

theme_easysurv()
Plot Theme for easysurv Survival and Hazard Plots
theme_risktable_easysurv()
Plot Theme for easysurv Risk Tables

Other functions

These functions are used to perform other tasks.

get_schoenfeld()
Extract Schoenfeld Residuals
write_to_xl()
Export easysurv output to Excel via openxlsx