box_cox: Computes the box-cox transformation and its inverse

Description Usage Arguments Details Value Examples

Description

Computes the box-cox transformation and its inverse

Usage

1
2
3
box_cox_transform(response, t_param)

inverse_box_cox_transform(response, t_param)

Arguments

response

The value to be modified

t_param

The transfomration parameter

Details

These functions aren't overly complicated: They aim to transform data for simplification purposes.

The Box-Cox transformation and its inverse are logarithmic/power transformations, and are useful because they are relatively easy to interpret.

The inverse_box_cox function essentially 'reverses' the Box-Cox transformation, in that it takes a transformed response, and reverts it back to its 'raw' state.

These transformations depend on a paramater, called the transformation parameter. Often you have to test multiple transformation parameters.

They are conditional:

Overall:

Value

The box-cox transormed value, or its inverse.

Examples

1
2
box_cox_transform(response=5, t_param=2)
inverse_box_cox_transform(response=12, t_param=2)

margotgunning/powers documentation built on May 29, 2019, 12:05 p.m.