toleranceInterval: returns a data.frame with 2-sided tolerance intervals for the...

View source: R/statTools.R

toleranceIntervalR Documentation

returns a data.frame with 2-sided tolerance intervals for the data distributed according to normal distribution

Description

returns a data.frame with 2-sided tolerance intervals for the data distributed according to normal distribution

Usage

toleranceInterval(
  data,
  column,
  removeNA = TRUE,
  alpha = 0.05,
  proportion = 0.95
)

Arguments

data

the data to be used, can be a numeric/character/etc vector or data.frame like (or tibble etc). If it is data.frame or similar the column argument defines which column is to be used

column

defines which column is to be used for calculating the quantiles. Can be integer or character (column name)

removeNA

if TRUE, the NA 'values' in the vector will be removed prior to calculating the quantiles. @note this will remove warning messages and errors

alpha

(1-confidence level), specifies the confidence level required

proportion

specifies proportion of the population

Value

a data.frame with two columns: statistic and the values calculated from the data

Note

tolerance interval = the range that covers a specified proportion of the population with a given level of confidence (1-alpha). It expresses the range where individual values from the population are expect to be


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.