shapiro for Shapiro-Wilk test or
'anderson' for 'Anderson-Darling' test of normality or ks for
'Kolmogorov-Smirnov'
pval
significance level for normality tests. Default is 0.05
xn
vector name
bin
TRUE if only TRUE/FALSE is required
Value
Logical TRUE/FALSE based on the performed test and pval.
If the vector follows the normality assumption, then TRUE is returned
Details
This function checks for normality assumption using
shapiro, Kolmogorov-Smirnov or Anderson Darling test.
If the parameter bin is TRUE, then TRUE is returned
if vector is normal, otherwise FALSE.
The significance level is passed through the parameter
pval