Determine the cumulative probability of the waiting time associated with a non-homogenous Poisson process, given the time of the last event.
get_wait_prob(last_event, wait_time, hazard, part, scale = FALSE)
A positive number. The time at last event.
A positive number. The waiting time to the next event.
A vector of positive numbers. The time-specific hazard rate.
A vector of positive numbers. Time partition over which to apply the time-specific hazard rate.
Logical. By default scale = FALSE
. Specifying scale = TRUE
ensures that this function is the CDF of a proper random variable.
wait_prob
The probability that the waiting time to next event is at least wait_time
.