View source: R/regression_models.R
Estimation of the Box-Cox transformation | R Documentation |
Estimation of the Box-Cox transformation.
bc(x, low = -1, up = 1)
x |
A numerical vector with strictly positive values. |
low |
The lowest value to search for the best |
up |
The highest value to search for the best |
The functions estimates the best \lambda
in the Box-Cox power transformation.
The optimal value of \lambda
.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>
Box George E. P. and Cox D. R. (1964). An analysis of transformations. Journal of the Royal Statistical Society, Series B, 26 (2):211-252.
correls, auc
x <- exp(rnorm(1000))
res<-bc(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.