winvar: Winsorized Variance

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns the winsorized variance of x.

Usage

1
winvar(x, tr = .2, na.rm = TRUE)

Arguments

x

A numeric vector of which to get the winsorized variance

tr

The proportion of scores to winsorize

na.rm

A logical indicating whether missing values should be removed prior to calculation.

Details

This function is borrowed directly from the WRS package.

Value

Returns the winsorized variance of x based on tr percente winsorizing.

Author(s)

Ryne A Sherman

See Also

var

Examples

1
2
3
x <- rnorm(20)
var(x)
winvar(x)

multicon documentation built on May 2, 2019, 3:18 a.m.