Description Usage Arguments Details Value
A Box-Cox (BC) transformation is often used to transform data to achieve a
symmetric, unimodal distribution (typically, of the response). The BC
transformation can be estimated via boxCox
. The code to
find the optimal value is a bit cumbersome. In this function, we streamline
the process.
1 |
x |
numeric data vector |
plot |
logical. Plot the BC's objective function? Default: no. |
family |
transformation family to use: Box-Cox or Yeo-Johnson. The
options match those in |
... |
additional arguments passed to |
The BC transformation requires a positive response. In this case, the Yeo-Johnson (YJ) transformation generalizes the BC transformation to allow all real values.
list with the transformed data in x
and the optimal BC value
in lambda
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.