This returns event times with a distribution resulting from piece-wise constant hazards
using the inversion method.
Arguments
- U
(numeric
)
uniformly distributed random variables.
- haz
(numeric
)
piecewise constant hazard.
- pw
(numeric
)
time intervals for the piecewise constant hazard.
- t_0
(numeric
)
the starting times.
Value
This returns a vector with event times.