View source: R/recommend.box.cox.R
recommend.box.cox | R Documentation |
Recommend parameters to optimally transform sample data to normality based on the Box Cox transformation.
recommend.box.cox(
x,
lambda.min = -5,
lambda.max = 5,
step = 0.1,
correct.min = T,
target = c("normal"),
metric = c("skewness+kurtosis", "skewness", "kurtosis")
)
x |
Vector/numeric - sample data. |
lambda.min |
Scalar/numeric - Minimum exponent. |
lambda.max |
Scalar/numeric - Maximum exponent. |
step |
- Scalar/numeric - The step size between min and max exponent to try. |
correct.min |
Scalar/logical - Shift data by minimum in sample to avoid transformation/reverse transformation issues. |
target |
- Scalar/character - The target distribution. |
metric |
- Scalar/character - Which metric to use for evaluating transformations. |
Data frame with best parameters found in search.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.