shapiro.test(x)
"htest"
containing the following components:
p.value < 0.1
."Shapiro-Wilk normality test"
.Patrick Royston (1982) Algorithm AS 181: The $W$ test for Normality. Applied Statistics, 31, 176--180.
Patrick Royston (1995) Remark AS R94: A remark on Algorithm AS 181: The $W$ test for normality. Applied Statistics, 44, 547--551.
qqnorm
for producing a normal quantile-quantile plot.
shapiro.test(rnorm(100, mean = 5, sd = 3))
shapiro.test(runif(100, min = 2, max = 4))
Run the code above in your browser using DataLab