box_cox: Box-Cox Transformation

Description Usage Arguments Value Examples

View source: R/box_cox.R

Description

Returns the transformed values of a particular column of data using the Box-Cox method for a particular value of lambda. The transformation is \frac{x^{λ} - 1}{x} if λ ≠ 0 and log_e(x) if λ = 0

Usage

1
box_cox(x, lambda)

Arguments

x

a vector of data

lambda

the value of lambda for the Box-Cox transformation

Value

x_lamb the transformed data

Examples

1
box_cox(x = 1:10, lambda = 0)

leahpom/MATH5793POMERANTZ documentation built on May 10, 2021, 9:52 a.m.