qgrubbs | R Documentation |
Computes the cumulative probability and quantiles for the Grubbs distribution describing an outlier in a sample from Normal distribution.
qgrubbs(alpha, N) pgrubbs(G, N)
alpha |
the significance level. |
N |
the number of values in the sample. |
G |
the maximum or minimum scaled difference from the mean. |
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.
Grubbs, F., 1969, Procedures for Detecting Outlying Observations in Samples, Technometrics, v. 11, no. 1, pp. 1-21.
grubbs.test
# The difference is due to rounding errors pgrubbs(c(.9, .95, .99), 32) qgrubbs(c(5.905348, 5.483234, 5.159097), 32)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.