laptol.int | R Documentation |
Provides 1-sided or 2-sided tolerance intervals for data distributed according to a Laplace distribution.
laptol.int(x, alpha = 0.05, P = 0.99, side = 1)
x |
A vector of data which is distributed according to a Laplace distribution. |
alpha |
The level chosen such that |
P |
The proportion of the population to be covered by this tolerance interval. |
side |
Whether a 1-sided or 2-sided tolerance interval is required (determined by |
laptol.int
returns a data frame with items:
alpha |
The specified significance level. |
P |
The proportion of the population covered by this tolerance interval. |
1-sided.lower |
The 1-sided lower tolerance bound. This is given only if |
1-sided.upper |
The 1-sided upper tolerance bound. This is given only if |
2-sided.lower |
The 2-sided lower tolerance bound. This is given only if |
2-sided.upper |
The 2-sided upper tolerance bound. This is given only if |
Bain, L. J. and Engelhardt, M. (1973), Interval Estimation for the Two Parameter Double Exponential Distribution, Technometrics, 15, 875–887.
## First generate data from a Laplace distribution with location
## parameter 70 and scale parameter 3.
set.seed(100)
tmp <- runif(40)
x <- rep(70, 40) - sign(tmp - 0.5)*rep(3, 40)*
log(2*ifelse(tmp < 0.5, tmp, 1-tmp))
## 95%/90% 1-sided Laplace tolerance intervals for the sample
## of size 40 generated above.
out <- laptol.int(x = x, alpha = 0.05, P = 0.90, side = 1)
out
plottol(out, x, plot.type = "hist", side = "two",
x.lab = "Laplace Data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.