Probability function, distribution function, quantile function and random generation for the Piecewise Exponential (PE) distribution.
Source:R/pexp.R
pexp.Rd
Probability function, distribution function, quantile function and random generation for the Piecewise Exponential (PE) distribution.
Usage
dpexp(x, rho, rates, log = FALSE)
ppexp(q, rho, rates, lower.tail = TRUE, log.p = FALSE)
qpexp(p, rho, rates, lower.tail = TRUE, log.p = FALSE)
rpexp(n, rho, rates)
Arguments
- x
vector of time points.
- rho
vector of time grid knots.
- rates
vector of failure rates.
- log, log.p
logical; if TRUE, probabilities p are given as log(p).
- q
vector of quantiles.
- lower.tail
logical; if TRUE (default), probabilities are \(P[X \le x]\); otherwise, \(P[X > x]\).
- p
vector of probabilities.
- n
number of random values to return.