plaplace: Laplace (Double Exponential) Cumulative Distribution Function

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/plaplace.R

Description

Laplace (double exponential) cumulative distribution function with mean equal to mean and standard deviation equal to sd.

Usage

1
plaplace(q, mean = 0, sd = 1, lower.tail = TRUE)

Arguments

q

Vector of quantiles.

mean

Population mean.

sd

Population standard deviation.

lower.tail

Logical; if TRUE (default), probabilities are P[X ≤ x]; otherwise, P[X > x].

Details

The Laplace distribution has density e^{-|x-μ| √{2} / σ} / (σ √{2}), where μ is the mean of the distribution and σ is the standard deviation.

Value

plaplace gives the distribution function.

Note

The formulas computed within plaplace are based on the textbook by Higgins (2004).

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

References

Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.

See Also

dlaplace, qlaplace, and rlaplace.

Examples

1
2
3
plaplace( seq( 20, 80, length.out=11 ), 50, 10 )

plaplace( seq( 20, 80, length.out=11 ), 50, 10, FALSE )

jmuOutlier documentation built on Aug. 6, 2019, 1:03 a.m.