winsor_z: Winzorize outliers above a particular standardized value

Description Usage Arguments Value

Description

Winzorize outliers above a particular standardized value

Usage

1
winsor_z(x, z)

Arguments

x

a numeric vector of values to winsorize

z

a single numeric value indicating the threshold above which extreme scores should be winsorized.

Value

a numeric vector with original values with extreme values replaced with the next extreme value in the distribution. The number of replacemnets and replacement values depend on the z argument.


ethan-young/esyr documentation built on May 15, 2019, 12:45 p.m.