YeoJohn | R Documentation |
Finds the Yeo-Johnson transformation that minimizes the skewness of the vector.
Returns the transformed vector with an attribute "lambda" (transformation parameter).
Uses yeo.johnson
.
YeoJohn(x, keepMedian = T, keepMAD = T, trim = 0)
x |
numeric vector to transform |
keepMedian |
Should the result be shifted so that it has the same median as the input vector? |
keepMAD |
Should the result be scaled so that it has the same dispersion (median absolute deviation) as the input vector? |
trim |
Numeric value between 0 and .5 . For robustness against outliers, this amount of each of the distribution's tails is excluded when estimating the optimal lambda. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.