View source: R/normality_test.R
nt_norm_test | R Documentation |
Perform Anderson-Darling, Shapiro-Francia, Kolmogorov-Smirnov, Cramer-vonMises, and Pearson normality tests for several variables. In addition, it also plots a Quantile-Quantile plot and a histogram.
nt_norm_test(data, group = NULL, norm.test = helper_sf_test)
data |
a data frame with the variables. |
group |
an optional character indicating the group variable. |
norm.test |
a function with a numeric vector as input and a list as output containing an object named |
tab
a table of p-values for each of the five normality tests.
plot
a Quantile-Quantile plot.
library(dplyr)
data(iris)
iris |> select(-Species) |> nt_norm_test()
iris |> nt_norm_test(group = Species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.