pow_yj {transx}R Documentation

Yeo and Johnson(2000) Transformations

Description

Maturing lifecycle

Usage

pow_yj(x, lambda = NULL, ...)

Arguments

x

⁠[univariate vector]⁠

Univariate vector, numeric or ts object with only one dimension.

lambda

⁠[numeric(1): NULL]⁠

Transformation exponent, \lambda.

...

Further arguments passed to pow.

Value

Returns a vector with the same class and attributes as the input vector.

References

Yeo, I., & Johnson, R. (2000). A New Family of Power Transformations to Improve Normality or Symmetry. Biometrika, 87(4), 954-959. http://www.jstor.org/stable/2673623

Examples

set.seed(123)
x <- runif(10)
pow_yj(x, 3)

[Package transx version 0.0.1 Index]