DelayedExponential {incubate}R Documentation

Delayed Exponential Distribution

Description

Density, distribution function, quantile function and random generation for the delayed exponential distribution with rate-parameter.

Usage

dexp_delayed(x, delay, rate = 1, ...)

pexp_delayed(q, delay, rate = 1, ...)

qexp_delayed(p, delay, rate = 1, ...)

rexp_delayed(n, delay, rate = 1)

Arguments

x

A numeric vector of values for which to get the density.

delay

numeric. The delay, must be non-negative.

rate

numeric. The event rate, must be non-negative.

...

further arguments are passed on to the underlying non-delayed function, e.g., stats::dexp()

q

A numeric vector of quantile values.

p

A numeric vector of probabilities.

n

integer. Number of random observations requested.

Details

Additional arguments are forwarded via ... to the underlying functions of the exponential distribution in the stats-package. The numerical arguments other than n are recycled to the length of the result. Only the first elements of the logical arguments are used.

Value

dexp_delayed gives the density, pexp_delayed gives the distribution function, qexp_delayed gives the quantile function, and rexp_delayed generates a pseudo-random sample from the delayed exponential distribution.

The length of the result is determined by n for rexp_delayed, and is the maximum of the lengths of the numerical arguments for the other functions.


[Package incubate version 1.2.1 Index]