normalr (version 1.0.0)

getLambda: 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 <U+2013> 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

Run this code
# NOT RUN {
 getLambda(mtcars)
# }
# NOT RUN {
getLambda(mtcars, parallel = FALSE)
# }

Run the code above in your browser using DataCamp Workspace