get_cum_backhaz {survextrap} | R Documentation |
Cumulative background hazards
Description
Obtain the cumulative hazard at a particular time, given a data frame of piecewise-constant background hazards. This is used in the computation of likelihoods and results in additive hazards models.
Usage
get_cum_backhaz(t, backhaz, strata = NULL)
Arguments
t |
A time point, or vector of time points, to calculate the cumulative hazard at. |
backhaz |
A data frame with two columns, named |
strata |
A vector of the same length as
We assume that the background hazard is known at all times, and defined by
a piecewise-constant function (step function) of time. The first element of
In additive hazards models, the background hazard is the hazard of
death from causes other than the specific cause of interest. The
overall hazard is defined as the sum of the background hazard and
the cause-specific hazard. In |
Value
The cumulative hazard at t
.