get_wait_prob: Obtain the cumulative probability of the waiting time to the...

Description Usage Arguments Value

View source: R/NHPP_functions.R

Description

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

Usage

1
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.


SimRVPedigree documentation built on Feb. 10, 2020, 1:07 a.m.