tidy_surv: To tidy up survfit object

Description Usage Arguments Value

View source: R/tidy_surv.R

Description

Add various other survival-based point estimates to a tidied survfit object. Like [broom::tidy()] but adds more estimates. Includes ability to expland o include all possible time points, even where no events occurred

Usage

1
tidy_surv(survfit, expand = FALSE)

Arguments

survfit

Object of class "survfit" from [survival::Surv()]

expand

Logical. if true then expand survival estimates to include rows for days when no events (or censoring) occurred.

Value

A tibble.


wjchulme/survhelper documentation built on May 23, 2019, 2:42 p.m.