DelayedWeibull: Delayed Weibull Distribution

DelayedWeibullR Documentation

Delayed Weibull Distribution

Description

Density, distribution function, quantile function and random generation for the delayed Weibull distribution with parameters as in the Weibull distribution functions in R's stats-package, namely:

  • delay

  • shape

  • scale (inverse of rate)

Usage

dweib_delayed(x, delay, shape, scale = 1, ...)

pweib_delayed(q, delay, shape, scale = 1, ...)

qweib_delayed(p, delay, shape, scale = 1, ...)

rweib_delayed(n, delay, shape, scale = 1)

Arguments

x

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

delay

numeric. The delay, must be non-negative.

shape

numeric. Shape parameter, must be positive.

scale

numeric. Scale parameter (inverse of rate), must be positive.

...

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

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

dweib_delayed gives the density, pweib_delayed gives the distribution function, qweib_delayed gives the quantile function, and rweib_delayed generates a pseudo-random sample from the delayed Weibull distribution.

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


incubate documentation built on Aug. 21, 2023, 5:11 p.m.