Grubbs: The Grubbs Distribution

qgrubbsR Documentation

The Grubbs Distribution

Description

Computes the cumulative probability and quantiles for the Grubbs distribution describing an outlier in a sample from Normal distribution.

Usage

qgrubbs(alpha, N)

pgrubbs(G, N)

Arguments

alpha

the significance level.

N

the number of values in the sample.

G

the maximum or minimum scaled difference from the mean.

Value

The function pgrubbs returns the attained p-value, not the cumulative distribution, for the maximum scaled distance from the mean. the funciton qgrubbs returns the one-sided critical value for the maximum scaled difference from the mean.

References

Grubbs, F., 1969, Procedures for Detecting Outlying Observations in Samples, Technometrics, v. 11, no. 1, pp. 1-21.

See Also

grubbs.test

Examples

# The difference is due to rounding errors
pgrubbs(c(.9, .95, .99), 32)
qgrubbs(c(5.905348, 5.483234, 5.159097), 32)

USGS-R/smwrStats documentation built on Oct. 11, 2022, 6:15 a.m.