aout.binom {alphaOutlier}R Documentation

Find \alpha-outliers in Binomial data

Description

Given the parameters of a Binomial distribution, aout.binom identifies \alpha-outliers in a given data set.

Usage

aout.binom(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 Binomial distribution, N and p.

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

dbinom

Examples

data(uis)
medbeck <- median(uis$BECK) 
aout.binom(data = uis$BECK, param = c(54, medbeck/54), alpha = 0.001)

[Package alphaOutlier version 1.2.0 Index]