Description Usage Arguments Details Value Examples
Computes the box-cox transformation and its inverse
1 2 3 | box_cox_transform(response, t_param)
inverse_box_cox_transform(response, t_param)
|
response |
The value to be modified |
t_param |
The transfomration parameter |
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:
if the transformation paramter is zero, the transformation is a log or exponential in nature,
if the transformation parameter is not equal to zero, the response undergoes a power transformation.
Overall:
This box_cox
, and inverse_box_cox
functions are quite simple.
There's nothing else to say about them.
The box-cox transormed value, or its inverse.
1 2 | box_cox_transform(response=5, t_param=2)
inverse_box_cox_transform(response=12, t_param=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.