cumhazard {OneArmTTE} | R Documentation |
Get Cumulative Hazard at a Landmark Timepoint
Description
Get Cumulative Hazard at a Landmark Timepoint
Usage
cumhazard(
eventRates = tibble::tibble(duration = c(3, 100), rate = c(log(2)/5, log(2)/5 * 0.5)),
landmark
)
Arguments
eventRates |
A tibble containing period duration ( |
landmark |
The landmark of interest to evaluate cumulative hazard. |
Value
A numeric which is the cumulative hazard at a landmark timepoint.
Examples
# Piecewise exponential event rates of 0.5 for time 0-3, 0.4 for time 3-6, and 0.5 after
cumhaz <- cumhazard(eventRates=tibble::tibble(duration = c(3,3,100),rate = c(0.5, 0.4, 0.3)),
landmark=12)
[Package OneArmTTE version 1.0 Index]