tidy_cuminc: Tidy a cuminc object

View source: R/tidy_cuminc.R

tidy_cumincR Documentation

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)

Arguments

x

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

times

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

Value

a tibble

Examples

library(tidycmprsk)

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

ggsurvfit documentation built on Nov. 2, 2023, 5:33 p.m.