Maturing lifecycle

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)
#> [1] 0.40366149 3.72378015 0.69198131 7.54828012 15.79748670 0.04773095 #> [7] 1.11911767 8.29532550 1.22933138 0.84031490