id.outliers: identify outliers

View source: R/id.outliers.R

id.outliersR Documentation

identify outliers

Description

given a vector of data, identify those positions that are 'nsd' standard deviation units from the mean

Usage

id.outliers(x, nsd = 5)

Arguments

x

a vector of numerical values

nsd

the number of standard deviation from the mean outliers are identified at. Default value is 5.

Value

a vector indexing which samples are outliers

Examples

ex_data = rnbinom(500, mu = 40, size = 5)
id.outliers(ex_data, nsd = 2)


MRCIEU/metaboprep documentation built on Jan. 28, 2023, 7:29 p.m.