censor_feature: Censor Outliers

Description Usage Arguments Details Value Author(s) Examples

Description

Values of a vector x are interval-censored to k-fold standard deviation around the mean.

Usage

1
censor_feature(x, k = 4)

Arguments

x

data to be censored

k

number of standard deviations around the mean (default k = 4)

Details

Mean m and standard deviation s of the data x are calculated. All values of x less/greater the threshold m -/+ k * s are set to this threshold.

Value

Censored data

Author(s)

Daniel Samaga

Examples

1
2
3
x <- c(rnorm(100),10)
x <- censor_feature(x = x, k = 2)
hist(x)

ZytoHMGU/hetset documentation built on June 6, 2019, 2:16 p.m.