This returns event times with a distribution resulting from the sum of two Weibull distributed random variables using the inversion method.
getWaitTimeSum(U, haz1, haz2, p1, p2, entry)
(numeric
)
uniformly distributed random variables.
(positive number
)
first summand (constant hazard).
(positive number
)
second summand (constant hazard).
(positive number
)
rate parameter of Weibull distribution for haz1
.
(positive number
)
rate parameter of Weibull distribution for haz2
.
(numeric
)
the entry times in the current state.
This returns a vector with event times.