View source: R/expected_events.R
surv_pieces_simple | R Documentation |
surv_pieces
returns the probability of being event-free at time t
assuming piecewise constant hazard.
surv_pieces_simple(t, change_points, lambdas)
{t} |
time |
{change_points} |
The breakpoints for the piecewise hazard function. |
{lambdas} |
A vector of length one more than |
The probability of being free of the event-of-interest at time t
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.