Description Usage Arguments Details Value References See Also Examples
Cumulative density, probability distribution function, quantile
function and random generation for the asymmetric Laplace distribution with
quantile p, location parameter mu
and scale parameter sigma
.
1 2 3 4 5 6 7 |
n |
: number of observations |
mu |
: location parameter |
sigma |
: scale parameter |
p, prob |
: probability at which to calculate quantile |
x, q |
: vector of quantiles |
lower.tail |
: logical; decides b/w P(X<=p) or P(X>p) for p/q |
The asymmetric Laplace distribution (ALD), which has the following pdf:
f(x;μ,σ,p) = p(1-p)/σ exp{-(x-μ)/σ (p-I(x ≤ μ))}
If not specified, p=0.5, mu = 0, sigma = 1.
raldmix
returns a vector of random numbers from AL(mu,sigma,p).
daldmix
returns returns density of AL(mu,sigma,p)
at point x.
paldmix
returns CDF prob of AL(mu,sigma,p)
at quantile q.
qaldmix
returns inverse CDF quantile of AL(mu,sigma,p)
at prob.
Keming Yu & Jin Zhang (2005) A Three-Parameter Asymmetric Laplace Distribution and Its Extension, Communications in Statistics - Theory and Methods, 34:9-10, 1867-1879, DOI: 10.1080/03610920500199018
Kobayashi, Genya. (2011). Gibbs Sampling Methods for Bayesian Quantile Regression. J Stat Comput Simul. 81. 1565. 10.1080/00949655.2010.496117.
rgig
for random sampling from GIG distribution
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.