View source: R/stat_normality.r
stat_normality | R Documentation |
Test the normality of a numeric variable.
stat_normality(x, alpha = 0.05, digits = 5, print = FALSE)
x |
A numeric vector |
alpha |
A numeric single value (default = 0.05), that is the significance level to compute the variable 'is_normal' |
digits |
A integer single value (default = NULL), that will be the number used to round the values |
print |
A boolean value, if TRUE the function will print the values in the viewer (default = FALSE) |
Apply the following normality tests:
- Anderson-Darling
- Cramer-Von Mises
- Kolmogorov-Smirnov
- Lilliefors
- Pearson chi-square
- Shapiro-Francia
- Shapiro-Wilk
A tibble (7x4) with each test: statistic, p-value and the condicional check of normality, given the alpha.
x <- rnorm(100)
stat_normality(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.