capping: Extreme values treatment

Description Usage Arguments Details Value

View source: R/capping.R

Description

This function treats extreme values by winsorization.

Usage

1

Arguments

x

A vector containing numeric numbers.

Details

For values that lie outside the 1.5*IQR limits, we cap them by replacing those observations outside the lower limit with the value of 5th %ile, and those that lie above the upper limit with the value of 95th %ile.

Value

A vector with the same length as the input, in which extreme values have been treated.


zky0708/2DImpute documentation built on March 12, 2020, 3:13 a.m.