Box_Cox: Box Cox transformation This function perform box cox...

Description Usage Arguments Details Value Examples

View source: R/Box_Cox.R

Description

Box Cox transformation This function perform box cox transformation

Usage

1
Box_Cox(y, lambda1, lambda2, na.omit = FALSE)

Arguments

y

The vector to be transformed

lambda1

The first parameter of the transformation in the range from -5 to 5

lambda2

The second parameter of the transformation, lambda2 is used for negative values of y. lambda2 must be greater than -y.

na.omit

whether or not to remove NAs, the default is FALSE

Details

This function calculates the box cox transformation of a vector The Box_Cox is used to transform non-normal dependent variables into a normal distribution

Value

A vector that is the box cox transformation of y

Examples

1
2
Box_Cox(1:10,2,4)
Box_Cox(-3:-1,3,2)

QinxinLin/powers documentation built on May 24, 2019, 7:53 a.m.