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

Description Usage Arguments Details Value Examples

View source: R/boxcoxt.R

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-An-Byeongchan documentation built on May 20, 2019, 5:46 p.m.