outlier_zscore: Outliers: Z-score method

View source: R/outliers.R

outlier_zscoreR Documentation

Outliers: Z-score method

Description

Z-score, also called a standard score, of an observation is a distance from the population center measured in number of normalization units. The default choice for center is sample mean and for normalization unit is standard deviation. Values are considered outliers based on z-score if its absolute value of default z-score is higher then the threshold (popular choice is 3).

Usage

outlier_zscore(x, thresh = 3, mad = FALSE)

Arguments

x

Numeric. Distribution

thresh

Numeric. Z-Score threshold for n standard deviations.

mad

Boolean. Use median absolute deviation instead?

Value

data.frame. Each row is an x observation with its respective std/mean or mad/med calculations depending on mad input.

See Also

Other Outliers: outlier_turkey(), outlier_zscore_plot(), winsorize()


lares documentation built on Sept. 13, 2024, 1:08 a.m.