powered by
Test normality of ANOVA model residuals using Shapiro-Wilk on raw, square-root, and log10 transforms (one-way or two-way).
normality_test_aov(df, variable_name, group_1, group_2 = NULL)
A tibble with Shapiro-Wilk p-values for each transformation.
A data frame.
Name of the response variable column (string).
Name of the first grouping column (string).
Name of the second grouping column (string), or NULL for a one-way model.
NULL
df <- data.frame( grp = c("A","A","B","B"), val = c(1.1, 1.4, 3.2, 3.8) ) normality_test_aov(df, "val", "grp")
Run the code above in your browser using DataLab