id_outliers: Identify outliers using mean and SD or median and...

View source: R/id_outliers.R

id_outliersR Documentation

Identify outliers using mean and SD or median and interquartile range

Description

This function identifies outliers using mean and SD or median and interquartile range

Usage

id_outliers(y, outlier_method = "iqr", outlier_cutoff = 5)

Arguments

y

a numeric vector from which outlier indexes will be identified.

outlier_method

a single string character of "iqr" or "sd" to determine if outlier should be determined by means and sd or medians and iqr.

outlier_cutoff

a single numeric value to define a cutoff value for how many iqr or sd units outlier values.

Value

returns vector indicating the index of an outlier(s).

Examples

id_outliers()

hughesevoanth/glsmr documentation built on May 14, 2023, 3:41 p.m.