winsorize {PCRA}R Documentation

Winsorize Data

Description

This function Winsorizes a fraction gamma of a numeric data set.

Usage

winsorize(x, fraction = 0.1)

Arguments

x

A numeric data set

fraction

A fraction greater than 0 and less than 0.5

Details

The Winsorized data is obtained by by setting the gamma smallest data values equal to the next smallest value, and setting the gamma largest data values equal to the next largest data value.

Value

The Winsorized numeric data

Examples

x <- rt(10,8)
winsorize(x,0.2)

[Package PCRA version 1.2 Index]