View source: R/GoodnessOfFit.R
get_residuals | R Documentation |
Compute residuals of transformation to normality
get_residuals(x, transformer, ...)
x |
A vector with numeric values that should be transformed to normality. |
transformer |
A transformer object created using
|
... |
Unused arguments. |
A data.table
containing the expected (according to a normal
distribution) and observed z-scores, and their difference as residuals.
x <- exp(stats::rnorm(1000))
transformer <- find_transformation_parameters(
x = x,
method = "box_cox")
residual_data <- get_residuals(
x = x,
transformer = transformer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.