Learn R Programming

simMSM (version 1.1.2)

unirootf: Warapper function for cumallcausehr to be used in uniroot.

Description

Function used for the numerical inversion of the cumulative all-cause hazard rate function.

Usage

unirootf(exit, u, entry, all.bhr, eta.ij, x.i)

Arguments

exit
exit time
u
sample from the uniform distribution
entry
entry time
all.bhr
list containg all cause-specific baseline hazard rate functions.
eta.ij
linear predictor functions
x.i
covariate observations for indididual i

Value

  • Return value of cumallcausehr

Examples

Run this code
unirootf(exit, u, entry, all.bhr, eta.ij, x.i)

Run the code above in your browser using DataLab