Skip to contents

Nonparametric estimation and visualization

summary(<cifcurve>) cifcurve()
Calculate the Kaplan-Meier estimator and the Aalen-Johansen estimator
cifplot()
Generate a survival/CIF curve with marks that represent censoring, competing risks and intercurrent events
cifpanel()
Arrange multiple survival and CIF plots in a panel display
cifflowchart()
Create a flowchart of exclusions, treatment groups, and outcome status

Direct polytomous regression

Hypothesis testing

ciftest()
Tests for survival and cumulative incidence curves

Automated reporting

cifreport()
Create a survival and competing-risk report

Data

diabetes.complications
Data from a cohort study of patients with type 2 diabetes
prostate
Data from a prostate cancer trial in Byer & Green (1980)

Helpers

extract_time_to_event()
Extract per-stratum event times from a formula and data
Event()
Create a survival or competing-risks response
Interval()
Encode an interval-censored event history
as_ggplot()
Extract a ggplot for customization or export
as_modelsummary()
Convert regression results to modelsummary input
as_prediction_data()
Extract prediction data in the common long format