#' Get normalized Values based on best-working transformation (box-cox is one of them)
#' @param x vector containing values
#' @param out_of_sample Boolean indicating whether out-of-sample distance from theoretical and actual distribution should be used for evalutaion. Decreases Performance significantly.
#' @return Vector of normalized Values
#' @export
get_normalized_values <- function(x, out_of_sample = FALSE){
library(tidyverse)
library(bestNormalize)
x.t <- suppressWarnings(bestNormalize::bestNormalize(
x = x, out_of_sample = FALSE, allow_orderNorm = FALSE)$x.t
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.