Learn R Programming

ggsurvfit (version 1.1.0)

tidy_cuminc: Tidy a cuminc object

Description

The tidycmprsk package exports a tidier for "cuminc" objects. This function adds on top of that and returns more information.

Usage

tidy_cuminc(x, times = NULL)

Value

a tibble

Arguments

x

a 'cuminc' object created with tidycmprsk::cuminc()

times

numeric vector of times. Default is NULL, which returns all observed times.

Examples

Run this code
library(tidycmprsk)

cuminc(Surv(ttdeath, death_cr) ~ trt, trial) %>%
  tidy_cuminc()

Run the code above in your browser using DataLab