outGrubbs: Outlier Test

View source: R/outGrubbs.R

outGrubbsR Documentation

Outlier Test

Description

Detect outliers in normal-distributed sample, using Grubbs test.

Usage

outGrubbs(x, output = c("stripped", "outliers", "which"), alpha = 0.05,
  log = FALSE)

Arguments

x

a numeric vector.

output

the required output, see Value below.

alpha

the significance level for a two-way test.

log

whether outlier detection should be performed on log(x).

Value

Vector like x with outliers removed, or if output="outliers" the outlier values, or if output="which" a vector indicating which elements are outliers.

Note

Grubbs (1969) cited in Sokal and Rohlf (1995, p. 407), recommending sample size > 25.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.