joint_cum_hazard_function function

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).

joint_cum_hazard_function(t, competing_transitions, spline_list)

Arguments

  • t: A vector of time points.
  • 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.

See Also

probtrans_by_convolution_clockforward; probtrans_by_convolution_clockreset; cumhaz_splines.

Author(s)

Rui Costa

  • Maintainer: Rui Costa
  • License: GPL (>= 3)
  • Last published: 2024-10-19

Useful links