powered by
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)
This returns a vector with event times.
(numeric) uniformly distributed random variables.
numeric
(positive number) first summand (constant hazard).
number
(positive number) second summand (constant hazard).
(positive number) rate parameter of Weibull distribution for haz1.
haz1
(positive number) rate parameter of Weibull distribution for haz2.
haz2
(numeric) the entry times in the current state.
getWaitTimeSum(U = c(0.4, 0.5), haz1 = 0.8, haz2 = 1, p1 = 1.1, p2 = 1.5, entry = c(0, 0))
Run the code above in your browser using DataLab