grubbs.test {ILS} | R Documentation |
Function to compute the Grubbs test statistic
Description
Function to estimate the Grubbs test statistic.
Usage
grubbs.test(x, ...)
## Default S3 method:
grubbs.test(
x,
var.index = 1,
replicate.index = 2,
material.index = 3,
laboratory.index = 4,
data.name = NULL,
alpha = 0.05,
...
)
## S3 method for class 'lab.qcdata'
grubbs.test(x, alpha = 0.05, ...)
Arguments
x |
An object of class |
... |
Other arguments passed to or from methods. |
var.index |
A scalar with the column number corresponding to the observed variable (the critical to quality variable). Alternativelly can be a string with the name of the quality variable. |
replicate.index |
A scalar with the column number corresponding to the index each replicate. |
material.index |
A scalar corresponding to the replicated number. |
laboratory.index |
A scalar that defines the index number of each laboratory. |
data.name |
A string specifying the name of the variable which appears on the plots. If name is not provided, it is taken from the object given as data. |
alpha |
The significance level (0.05 for default) |
References
Wilrich Peter-T. (2013), Critical values of Mandel's h and k, the Grubbs and the Cochran test statistic. Asta-Advances in Statistical Analysis, 97(1):1-10.
ASTM E 691 (1999), Standard practice for conducting an interlaboratory study to determine the precision of a test method. American Society for Testing and Materials. West Conshohocken, PA, USA.
Examples
library(ILS)
data(Glucose)
Glucose.qcdata<- lab.qcdata(Glucose)
str(Glucose.qcdata)
grubbs.test(Glucose.qcdata)