powered by
This function performs the Shapiro-Wilk test if the sample size is between 3 and 5000. Otherwise, it performs the Anderson-Darling test.
shapiro_normality_test(data)
A character string indicating whether the data is "Normal" or "Not Normal".
A numeric vector.
shapiro_normality_test(rnorm(100))
Run the code above in your browser using DataLab