ddweibull {WALS}R Documentation

Internal function: double (reflected) Weibull density

Description

Wrapper around dweibull to use the parametrization on pp. 131 of Magnus and De Luca (2016).

Usage

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

Arguments

x

vector of quantiles.

q

q in Magnus and De Luca (2016). Parameter of reflected generalized gamma distribution. See below for details.

b

c in Magnus and De Luca (2016). 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}).

Value

Gives the (log-)density.

References

Magnus JR, De Luca G (2016). “Weighted-average least squares (WALS): A survey.” Journal of Economic Surveys, 30(1), 117-148. doi:10.1111/joes.12094.

See Also

weibull, dweibull.


[Package WALS version 0.2.5 Index]