Description Usage Arguments Value
boxCoxEncode
1 2 | boxCoxEncode(dt, vars, lambda = NULL, minNormalize = 0.05,
capNegPredOutliers = 0)
|
dt |
Dataset to create object on. |
vars |
variables you want to include in the encoding. |
lambda |
You can pass custom lambdas if you want. Not recommended. |
minNormalize |
Box-Cox is a _risky_ transformation because it will fail if
it encounters a number <= 0. You can reduce this _riskyness_ by adding a certain amount of
'space' between your expected range and 0. |
capNegPredOutliers |
If you weren't careful enough with minNormalize and some
negative values end up coming through, do you want to cap them before they hit boxCox, or throw an error?
Safer to throw an error, so it's set to 0 by default. Then results in |
BoxCox Encoded Object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.