This function checks whether a numeric vector is approximately normally distributed,
using the Shapiro-Wilk test for small samples (n < 5000) and the Anderson-Darling test
for larger ones. If the input is not numeric, the function returns NULL
.
check_parametric(data)
A list containing:
Name of the test used ("Shapiro-Wilk Test" or "Anderson-Darling Test")
The test statistic
The p-value from the test
Logical; TRUE
if p > 0.05 (assumed normal), FALSE
otherwise
Returns NULL
if input is not numeric.
A numeric vector to test for normality.