shapiro.wilk.test {cwhmisc} | R Documentation |
Performs the Shapiro-Wilk test for normality.
shapiro.wilk.test(x)
x |
a numeric vector of data values, the number of which must be between 3 and 5000. Missing values are allowed. |
A list containing the following components:
W |
the value of the Shapiro-Wilk statistic. |
n |
length(x) |
p |
the p-value for the test. |
??
shapiro.test
of ctest
shapiro.wilk.test(rnorm(100, mean = 5, sd = 3)) shapiro.wilk.test(runif(100, min = 2, max = 4))