referenceIntervals (version 1.3.0)

cook.outliers: Determines outliers using Cook's Distance

Description

A linear regression model is calculated for the data (which is the mean for one-dimensional data. From that, using the Cook Distances of each data point, outliers are determined and returned.

Usage

cook.outliers(data)

Value

Returns a list containing a vector of outliers and a vector of the cleaned data (subset).

outliers

A vector of outliers from the data set

subset

A vector containing the remaining data, cleaned of outliers

Arguments

data

A vector of data points.

Author

Daniel Finnegan

Examples

Run this code
	
cook.outliers(set50)
plot(cook.outliers(set50)$subset)

Run the code above in your browser using DataLab