Learn R Programming

ume (version 1.5.2)

ustats_outlier: Outlier detection using multiple statistical tests

Description

This function computes an out_score for each value in a selected column. The score increases when a value is flagged as an outlier by one or more tests: IQR test, quantile cutoffs, and Hampel filter.

Usage

ustats_outlier(dt, check_col = "ppm", verbose = FALSE, ...)

Value

A data.table containing new columns: out_score, out_box, out_quantile, and out_hampel.

Arguments

dt

A data.table or data.frame.

check_col

A character string naming the column to test for outliers.

verbose

Logical; print summary statistics when TRUE.

...

Additional arguments passed to methods.

Examples

Run this code
ustats_outlier(mf_data_demo, check_col = "ppm")

Run the code above in your browser using DataLab