chauvenet: Chauvenet's criterion

View source: R/stats.R

chauvenetR Documentation

Chauvenet's criterion

Description

Applies the Chauvenet's criterion to a sample, identifying a possible outlier.

Usage

chauvenet(x, threshold = 0.5)

Arguments

x

the sample vector.

threshold

the threshold for the frequency of the suspect outlier.

Value

an object of class chauvenet with the following components:

sample

the name of the sample

s0

the maximum difference

index

the index of the suspect outlier

value

the value of the suspect outlier

expected

the expected frequency of the suspect outlier

reject

a logical value indicating whether the suspect outlier should be rejected

Examples

x <- rnorm(100)
chauvenet(x)
chauvenet(x, threshold=0.1)

adas.utils documentation built on April 12, 2025, 1:52 a.m.