Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dal

The Asymmetric Laplace Distribution


Description

Density, distribution function, quantile function and random generation for the asymmetric Laplace distribution.

Usage

dal(x, mu = 0, sigma = 1, tau = 0.5, log = FALSE)
pal(x, mu = 0, sigma = 1, tau = 0.5)
qal(x, mu = 0, sigma = 1, tau = 0.5)
ral(n, mu = 0, sigma = 1, tau = 0.5)

Arguments

x

vector of quantiles (dal, pal) or probabilities (qal).

n

number of observations.

mu

location parameter.

sigma

positive scale parameter.

tau

skewness parameter (0,1).

log

logical; if TRUE, probabilities are log–transformed.

Details

The asymmetric Laplace distribution with parameters (mu, sigma, tau) has density

f(x) = τ(1-τ)/σ e^{-1/(2σ) (θ max(x,0) + (1 - θ) max(-x,0))}

Author(s)

Marco Geraci

See Also


lqmm

Linear Quantile Mixed Models

v1.5.5
GPL (>= 2)
Authors
Marco Geraci
Initial release
2019-12-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.