joint_cum_hazard_function {ebmstate}R Documentation

Compute the cumulative hazard of leaving a given state

Description

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

Usage

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.

Value

A vector with the cumulative hazard of leaving a given state evaluated at given time points.

Author(s)

Rui Costa

See Also

probtrans_by_convolution_clockforward; probtrans_by_convolution_clockreset; cumhaz_splines.


[Package ebmstate version 0.1.4 Index]