Compute the cumulative hazard of leaving a given state
Compute the cumulative hazard of leaving a given state
This function is not meant to be called by the user. It is an internal function of probtrans_by_convolution_clockforward
and probtrans_by_convolution_clockreset.
joint_cum_hazard_function returns the cumulative hazard of leaving state i to any state that can be reached directly from i, at each of the time points in t. There is no explicit argument i: this state is entirely defined by the transitions that can occur when the patient is in it (and these transitions are given in the argument competing_transitions).
competing_transitions: The transitions that can occur when the process is in state i.
spline_list: A list whose elements are spline functions approximating the cumulative hazard of making each possible transition in the process. This is normally a list object created by running cumhaz_splines.
Returns
A vector with the cumulative hazard of leaving a given state evaluated at given time points.