normaliseDataInfo: Apply normalisation on a data frame using specific Lambda...

Description Usage Arguments Value References Examples

View source: R/normaliseDataInfo.R

Description

Apply normalisation on a data frame using specific Lambda value

Usage

1
normaliseDataInfo(dat, lambdas)

Arguments

dat

a data frame containing the variables.

lambdas

a numeric vector from the boxcox function

Value

a list of three elements, the first element, lambdas, is a numeric vector containing lambdas, the second element, scaled, is a numeric vector containing scale adjustment, the last element, transDat, is a data frame comprising the transformed variables.

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: normaliseDataInfo(mtcars, getLambda(mtcars, parallel = FALSE))
normaliseDataInfo(mtcars, getLambda(mtcars, parallel = FALSE))

kcha193/normalr documentation built on Dec. 11, 2021, 1:54 p.m.