powered by
Compute residuals of transformation to normality
get_residuals(x, transformer, ...)
A data.table containing the expected (according to a normal distribution) and observed z-scores, and their difference as residuals.
data.table
A vector with numeric values that should be transformed to normality.
A transformer object created using find_transformation_parameters.
find_transformation_parameters
Unused arguments.
x <- exp(stats::rnorm(1000)) transformer <- find_transformation_parameters( x = x, method = "box_cox") residual_data <- get_residuals( x = x, transformer = transformer)
Run the code above in your browser using DataLab