boxcoxt: Calculate the (one-parameter) Box-Cox transformation of a...

Description Usage Arguments Details Value Examples

Description

Calculate the (one-parameter) Box-Cox transformation of a vector (given lambda)

Usage

1
boxcoxt(y, lambda = 0.1)

Arguments

x

The vector to be transformed (Box-Cox transformation).

Details

This is the one-parameter Box-Cox transformation. This function does not calculate the optimal lambda value. Using boxcox() in the MASS package is recommended for optimal lambda. The default value of lambda is 0.1 All the elements of the input vector should be positive for Box-Cox transformation.

Value

A vector that is the Box-Cox transformation of x.

Examples

1
2
boxcoxt(1:10)
boxcoxt(1:5, lambda = 0.3)

bcahn7/STAT547M-hw09-powers documentation built on May 30, 2019, 4:15 p.m.