Testing for Normality
Remember what this test is doing!!
H0 : The data are normally distributed.
H1 : The data are not normally distributed.
Shapiro-Wilk Test
The first test we will look at is the Shapiro-Wilk test.
shapiro.test(Vec)
Shapiro-Wilk normality test
data: Vec
W = 0.9888, p-value = 0.5727
As the p-value is very high, we fail to reject the null hypothesis that the data set ``Vec" is normally distributed.