Learn R Programming

lqmix (version 1.1)

dal: Density of the Asymmetric Laplace distribution

Description

Compute the density for the three parameter Asymmetric Laplace Distribution

Usage

dal(y, mu = 0, sigma = 1, qtl = 0.5, log = FALSE)

Value

Return the density for the asymmetric Laplace distribution

Arguments

y

vector of quantiles

mu

location parameter

sigma

scale parameter

qtl

skewness parameter

log

logical; if TRUE, probabilities are log-transformed

Details

The function computes the density of the Asymmetric Laplace distribution, with location \(\mu\), scale \(\sigma > 0\) and skewness qtl = q in (0,1), as discussed by Koenker and Machado (1999) and Yu and Moyeed (2001), according to the following expression

$$f(y | \mu, \sigma, q) = \frac{q(1-q)}{\sigma} \exp(-\rho_{q} (\frac{y-\mu}{\sigma}))$$

References

ref:dal1lqmix

ref:dal2lqmix