Learn R Programming

WALS (version 0.2.5)

ddweibull: Internal function: double (reflected) Weibull density

Description

Wrapper around dweibull to use the parametrization on pp. 131 of magnus2016wals;textualWALS.

Usage

ddweibull(x, q, b, log = FALSE)

Value

Gives the (log-)density.

Arguments

x

vector of quantiles.

q

\(q\) in magnus2016wals;textualWALS. Parameter of reflected generalized gamma distribution. See below for details.

b

\(c\) in magnus2016wals;textualWALS. Parameter of reflected generalized gamma distribution. See below for details.

log

logical; if TRUE, probabilities p are given as log(p).

Details

The density function is $$\pi(x) = \frac{q c}{2} |x|^{q - 1} \exp(-c |x|^{q}).$$

References

See Also

weibull, dweibull.