windsorize: Windsorize data

Description Usage Arguments References

View source: R/windsorize.R

Description

Windsorize data

Usage

1
2
3
windsorize(x, method = c("trim", "outliers"), trim = 0.2, dist = 3)

var.windsorized(x, ...)

Arguments

x

a numeric vector.

method

possible choices are "trim" for trimming arbitrary range of values or "mad" for removing values that are outlying from the median by distance * MAD. Values outside that range are replaced with the nearest endpoint.

trim

the fraction (0 to 0.5) of observations to be trimmed from each end of x. Values outside that range are replaced with the nearest endpoint.

dist

distance from the median when using method = "mad".

References

Keselman, H. J., Algina, J., Lix, L. M., Wilcox, R. R., & Deering, K. (2008). A generally robust approach for testing hypotheses and setting confidence intervals for effect sizes. Psychological Methods, 13, 110<e2><80><93>129.


twolodzko/twextras documentation built on May 3, 2019, 1:52 p.m.