| normality_test_aov | R Documentation |
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)
df |
A data frame. |
variable_name |
Name of the response variable column (string). |
group_1 |
Name of the first grouping column (string). |
group_2 |
Name of the second grouping column (string), or |
A tibble with Shapiro-Wilk p-values for each transformation.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.