aout.hyper: Find alpha-outliers in hypergeometric data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/aout.hyper.R

Description

Given the parameters of a hypergeometric distribution, aout.hyper identifies α-outliers in a given data set.

Usage

1
aout.hyper(data, param, alpha = 0.1, hide.outliers = FALSE)

Arguments

data

a vector. The data set to be examined.

param

a vector. Contains the parameters of the hypergeometric distribution: m, n, k.

alpha

an atomic vector. Determines the maximum amount of probability mass the outlier region may contain. Defaults to 0.1.

hide.outliers

boolean. Returns the outlier-free data if set to TRUE. Defaults to FALSE.

Value

Data frame of the input data and an index named is.outlier that flags the outliers with TRUE. If hide.outliers is set to TRUE, a simple vector of the outlier-free data.

Author(s)

A. Rehage

See Also

Hypergeometric

Examples

1
2
3
set.seed(1)
lotto6aus49 <- rhyper(100, 6, 43, 6) 
aout.hyper(lotto6aus49, c(6, 43, 6), 0.1)

alphaOutlier documentation built on May 2, 2019, 3:59 p.m.