Learn R Programming

adas.utils (version 1.0.0)

chauvenet: Chauvenet's criterion

Description

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

Usage

chauvenet(x, threshold = 0.5)

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

Arguments

x

the sample vector.

threshold

the threshold for the frequency of the suspect outlier.

Examples

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

Run the code above in your browser using DataLab