eda_re: Re-expression function

View source: R/eda_re.R

eda_reR Documentation

Re-expression function

Description

eda_re re-expresses a vector following the Tukey or box-cox transformation.

Usage

eda_re(x, p = 0, tukey = TRUE)

Arguments

x

Vector

p

Power transformation

tukey

If set to TRUE, then adopt Tukey's power transformation, if FALSE, adopt Box-Cox transformation

Details

The function is used to re-express data using one of two transformation techniques: Box-Cox transformation (tukey = FALSE)or Tukey's power transformation (tukey = TRUE).

Value

Returns a vector of same length as input x

Examples

x <- c(15, 28, 17, 73,  8, 83,  2)
eda_re(x, p=-1/3)

mgimond/tukeyedar documentation built on March 19, 2024, 8:44 a.m.