dlaplace {gbs} | R Documentation |
Probabilility density function of the Laplace distribution.
dlaplace(x)
x |
Vector of observations. |
The Laplace distribution has pdf given by
f_X(x)=(1/2) exp(-|x|), quad -infty < x < + infty
dlaplace()
gives the pdf of an Laplace distribution.
Barros, Michelli <michelli.karinne@gmail.com>
Leiva, Victor <victor.leiva@uv.cl, victor.leiva@yahoo.com>
Paula, Gilberto A. <giapaula@ime.usp.br>
Diaz-Garcia, J.A., Leiva, V. (2005) A new family of life distributions based on elliptically contoured distributions. J. Stat. Plan. Infer. 128:445-457 (Erratum: J. Stat. Plan. Infer. 137:1512-1513).
Leiva, V., Barros, M., Paula, G.A., Sanhueza, A. (2008) Generalized Birnbaum-Saunders distributions applied to air pollutant concentration. Environmetrics 19:235-249.
Mineo, A. (2003). A new package for the general error distribution. R News 3:13-16.
Sanhueza, A., Leiva, V., Balakrishnan, N. (2008) The generalized Birnbaum-Saunders distribution and its theory, methodology and application. Comm. Stat. Theory and Meth. 37:645-670.
# Produces a graphical plot for the Laplace distribution x <- seq(-3, 3, by = 0.01) y <- dlaplace(x) plot(x, y, type = "l", xlab = "x", ylab = "f(x)")