winzorize: Winsorization

View source: R/winzorize.R

winzorizeR Documentation

Winsorization

Description

This function performs the replacement of extreme values by less extreme ones in a dataframe for performing parametric tests

Usage

winzorize(
  dat,
  dv,
  ivs = NULL,
  covar = NULL,
  probs = c(0.05, 0.95),
  skewness = c()
)

Arguments

dat

a data frame containing the values to be winzorized

dv

column with the dependent variable

ivs

columns with the independent variables

covar

columns with the covariante

probs

numeric vector of probabilities with values in [0,1] as used in quantile

skewness

columns in which there were applied skewness transformation

Value

A data frame containing the column with dv values replaced


geiser/rshinystatistics documentation built on Feb. 18, 2024, 6:07 p.m.