getLambda: Get Optimal Lambda value

Description Usage Arguments Value References Examples

View source: R/getLambda.R

Description

Computes optimal lambda value using boxcox function from the provided data.

Usage

1
getLambda(dat, lambda = seq(-10, 10, 1/100), parallel = TRUE)

Arguments

dat

a data frame containing the variables of numeric or integer vectors.

lambda

a vector of values of lambda <e2><80><93> default (-10, 10) in steps of 0.01.

parallel

perform the computation in parallel, default setting is TRUE.

Value

a numeric vector

References

Courtney, M. G. R., and Chang, K. C. (2018) Dealing with non-normality: an introduction and step-by-step guide using R. TEST, doi: 10.1111/test.12154.

Examples

1
2
## Not run:  getLambda(mtcars)
getLambda(mtcars, parallel = FALSE)

normalr documentation built on May 2, 2019, 2:46 p.m.