excludeOutliersByMask {rapidsplithalf}R Documentation

Exclude SD-based outliers

Description

Different masks (columns of a logical matrix) are applied to the same input vector, and outliers in each resulting subvector are marked with FALSE in the mask.

Usage

excludeOutliersByMask(x, mask, sdlim = 3)

Arguments

x

Vector to exclude outliers from.

mask

A logical matrix determining which data points to include and which not to.

sdlim

Standard deviation limit to apply; values beyond are classified as outliers and masked.

Value

An updated mask.

Examples

x<-rnorm(50)
x[1]<-100
x[2]<-50
mask<-matrix(TRUE,ncol=3,nrow=50)
mask[1,2]<-FALSE
mask[2,3]<-FALSE
excludeOutliersByMask(x,mask)

[Package rapidsplithalf version 0.2 Index]