simnormtol.int | R Documentation |
Provides simultaneous 1-sided or 2-sided tolerance intervals for data distributed according to either a normal distribution or log-normal distribution.
simnormtol.int(x, alpha = 0.05, P = 0.99, side = 1,
method = c("EXACT", "BONF"), m = 50, log.norm = FALSE)
x |
Either a matrix or list of vectors of the data. If a matrix, then the columns are the samples from the different normal (or log-normal) populations. If |
alpha |
The level chosen such that |
P |
The proportion of the population to be covered by this tolerance interval. |
side |
Whether simultaneous 1-sided or 2-sided tolerance intervals are required (determined by |
method |
The method for calculating the k-factors. |
m |
The maximum number of subintervals to be used in the |
log.norm |
If |
Recall that if the random variable X
is distributed according to a log-normal distribution, then the random variable Y = ln(X)
is
distributed according to a normal distribution.
normtol.int
returns a data frame with items:
alpha |
The specified significance level. |
P |
The proportion of the population covered by this tolerance interval. |
x.bar |
The sample means. |
1-sided.lower |
The simultaneous 1-sided lower tolerance bounds. This is given only if |
1-sided.upper |
The simultaneous 1-sided upper tolerance bounds. This is given only if |
2-sided.lower |
The simultaneous 2-sided lower tolerance bounds. This is given only if |
2-sided.upper |
The simultaneous 2-sided upper tolerance bounds. This is given only if |
The code for this functions is built upon code provided by Andrew Landgraf.
Krishnamoorthy, K. and Mathew, T. (2009), Statistical Tolerance Regions: Theory, Applications, and Computation, Wiley.
Mee, R. W. (1990), Simultaneous Tolerance Intervals for Normal Populations with Common Variance, Technometrics, 32, 83-92.
Normal
, K.factor.sim
## 95%/95% simultaneous 1-sided normal tolerance
## intervals for two samples of unequal size.
set.seed(100)
x <- list(rnorm(5,1),rnorm(7,1,2))
out <- simnormtol.int(x = x, alpha = 0.05, P = 0.95,
side = 1, method = "BONF")
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.