View source: R/transformations.R
root_transformation | R Documentation |
Normalise data with a root transformation.
root_transformation( data, trait = "DATA", alpha = 0.05, transf_vals = c(2, exp(1), 3, 4, 5, 6, 7, 8, 9, 10), plots_prefix = "HIST", digits = 6, plot = TRUE, quiet = FALSE )
data |
Original data. |
trait |
Trait name. |
alpha |
Significance level. |
transf_vals |
Transformation values. |
plots_prefix |
Prefix for plots with or without path. |
digits |
Significant digits to compare p-values of transformations. |
plot |
Boolean flag to indicate whether or not to plot a histogram comparing the original and transformed/normalised data. |
quiet |
Boolean flag to hide status messages. |
Data structure containing the normalised data, original data if no transformation was performed.
Other Transformation functions:
log_transformation()
,
power_transformation()
set.seed(123) data <- rnorm(100, 5) transformed <- MetaPipe::root_transformation(data ^ 2, "EXP_2") # Clean up example outputs MetaPipe:::tidy_up("HIST")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.