Learn R Programming

SimRVPedigree (version 0.4.4)

get_wait_prob: Obtain the cumulative probability of the waiting time to the next event

Description

Determine the cumulative probability of the waiting time associated with a non-homogenous Poisson process, given the time of the last event.

Usage

get_wait_prob(last_event, wait_time, hazard, part, scale = FALSE)

Arguments

last_event

A positive number. The time at last event.

wait_time

A positive number. The waiting time to the next event.

hazard

A vector of positive numbers. The time-specific hazard rate.

part

A vector of positive numbers. Time partition over which to apply the time-specific hazard rate.

scale

Logical. By default scale = FALSE. Specifying scale = TRUE ensures that this function is the CDF of a proper random variable.

Value

wait_prob The probability that the waiting time to next event is at least wait_time.