qlaplace: Laplace Quantiles

Description Usage Arguments Value References Examples

Description

The function qlaplace returns the quantiles for the standard Laplace distribution which is discussed on page 77 of the text. Quantiles for this distribution are discussed on page 260, Example 4.4.6.

Usage

1

Arguments

ps

a vector of floating point numbers between 0 and 1, of probabilites.

Value

returns a vector of quantiles for standard laplace distribution. For quantiles with probabilites less than .5 reported first and greater than .5 following them.

References

Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.

Examples

1
2
3
4
5
6
7
8
9
ps <- c(0.22, 0.93, 0.28)
qlaplace(ps)
## [1] -0.8209806 -0.5798185  1.9661129 the first element corresponds to the
## first element in ps, the second element corespomds to the third element in
## ps, and the third corespomds to the second element in ps becaue the order
## they are reported in
ps <- .9750
qlaplace(ps)
## [1] 2.995732

austinragotzy/mathstat documentation built on May 13, 2019, 11:30 a.m.