Learn R Programming

transx (version 0.0.1)

pow_yj: Yeo and Johnson(2000) Transformations

Description

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

Run this code
# NOT RUN {
set.seed(123)
x <- runif(10)
pow_yj(x, 3)
# }

Run the code above in your browser using DataLab