R/piecewiseDistribution.R
PCWInversionMethod.Rd
This returns an event time with a distribution resulting from piece-wise constant hazards using the inversion method.
PCWInversionMethod(haz, pw, LogU)
(numeric
)
piecewise constant hazard.
(numeric
)
time intervals for the piecewise constant hazard.
(numeric
)
transformed uniformly distributed random variables (log(1-U)).
This returns one single event time.