View source: R/helper_functions.R
g_inv_bc | R Documentation |
Evaluate the inverse Box-Cox transformation. Negative values are permitted.
g_inv_bc(s, lambda)
s |
argument(s) at which to evaluate the function |
lambda |
Box-Cox parameter |
The evaluation(s) of the inverse Box-Cox function at the given input(s) s
.
Special cases include
the identity transformation (lambda = 1
),
the square-root transformation (lambda = 1/2
),
and the log transformation (lambda = 0
).
#' @examples # (Inverse) log-transformation: g_inv_bc(1:5, lambda = 0); exp(1:5)
# (Inverse) square-root transformation: note the shift and scaling g_inv_bc(1:5, lambda = 1/2); (1:5)^2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.