winsor: Winsorization

Description Usage Arguments Value Author(s) See Also Examples

Description

Values below a detection limit are replaced by the smallest observation above the LOD; however also the same number of largest values are replaced by the next smallest observation.

Usage

1
winsor(x, lod = NULL, width = NULL)

Arguments

x

numeric; a vector of values.

lod

numeric; limit of detection.

width

integer; width (=number of observations on each tail) of winsorization.

Value

A vector of winsorized values.

Author(s)

Eduard Szoecs szoe8822@uni-landau.de

See Also

sd_winsor

Examples

1
2
3
x <- c(7.7, 7.7, 7.7, 7.1, 6.9, 6.5, 6.2, 6.1, 5.7, 5.6, 5.2, 4.5,
4.1, 4, 3.6, 3.5, 3.5, 3.3, 2.6, 2.6, 2.6)
winsor(x, lod = 2.5)

EDiLD/qetx documentation built on May 6, 2019, 3:01 p.m.