Learn R Programming

Rsubbotools (version 0.0.1)

dalaplace: Returns density from Asymmetric Laplace Distribution

Description

The dalaplace returns the density at point x for the Asymmetric Laplace distribution with parameters \(a*\) and \(m\).

Usage

dalaplace(x, m = 0, al = 1, ar = 1)

Value

a vector containing the values for the densities.

Arguments

x

(numeric) - value in the range \((-\infty, \infty)\) to evaluate the density.

m

(numeric) - location parameter.

al, ar

(numeric) - scale parameters. Must be in the range \((0, \infty)\).

Details

The Asymmetric Laplace distribution is a distribution controlled by three parameters, with formula: $$f(x;a_l,a_r,m) = \frac{1}{A} e^{-|\frac{x-m}{a_l}| }, x < m $$ $$f(x;a_l,a_r,m) = \frac{1}{A} e^{-|\frac{x-m}{a_r}| }, x > m $$ with: $$A = a_l + a_r$$ where \(a*\) are scale parameters, and \(m\) is a location parameter. It is basically derived from the Asymmetric Exponential Power distribution by setting \(b_l = b_r = b\).