| boxcox | R Documentation |
Simple Box Cox, with no optimisation of lambda.
boxcox(x, lambda, makepos = TRUE, na.rm = FALSE)
x |
A vector or column of data to transform |
lambda |
The lambda parameter of the Box Cox transform |
makepos |
If |
na.rm |
If |
This function replaces the now-defunct BoxCox() from COINr < v1.0.
A vector of length length(x) with transformed values.
# example data x <- runif(30) # Apply Box Cox xBox <- boxcox(x, lambda = 2) # plot one against the other plot(x, xBox)