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