BoxCox: Box Cox Transformation

Description Usage Arguments Details Value Author(s) References

Description

BoxCox() returns a transformation of the input variable using a Box-Cox transformation. InvBoxCox() reverses the transformation.

Usage

1
BoxCox(x, lambda)

Arguments

x

a numeric vector or time series

lambda

transformation parameter

Details

The Box-Cox transformation is given by

f(x;lambda) = (x^lambda - 1)/lambda

if lambda is not equal to 0. For lambda=0,

f(x;0) = log(x).

Value

a numeric vector of the same length as x.

Author(s)

Rob J Hyndman

References

Box, G. E. P. and Cox, D. R. (1964) An analysis of transformations. JRSS B 26 211–246.


robjhyndman/hdrcde documentation built on Sept. 16, 2020, 5:02 a.m.