Description Usage Arguments Details Value Author(s) Examples
dalapl
evaluates the probability density function,
palapl
the cumulative probability function
and ralapl
generates random draws.
1 2 3 4 5 |
x |
Vector of values at which to evaluate the pdf/cdf |
n |
Number of random draws |
th |
Location parameter (mode) |
scale |
Scale parameter (proportional to variance) |
alpha |
Asymmetry parameter, must be between -1 and 1 |
logscale |
If TRUE the log-pdf is returned |
For x<=th the asymmetric Laplace pdf is
0.5*exp(-abs(th-x)/(sqrt(scale)*(1+alpha)))/sqrt(scale)
and for x>th it is
0.5*exp(-abs(th-x)/(sqrt(scale)*(1-alpha)))/sqrt(scale)
dalapl
returns the density function,
palapl
the cumulative probability,
ralapl
random draws.
David Rossell
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.