getLambda {normalr}R Documentation

Get Optimal Lambda value

Description

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

Usage

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 – 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

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

[Package normalr version 1.0.0 Index]