\HeaderA{shapiro.test}{Shapiro-Wilk Normality Test}{shapiro.test}
\keyword{htest}{shapiro.test}
\begin{Description}\relax
Performs the Shapiro-Wilk test of normality.
\end{Description}
\begin{Usage}
\begin{verbatim}
shapiro.test(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric vector of data values, the number of which must be
between 3 and 5000.  Missing values are allowed.
\end{ldescription}
\end{Arguments}
\begin{Value}
A list with class \code{"htest"} containing the following components:
\begin{ldescription}
\item[\code{statistic}] the value of the Shapiro-Wilk statistic.
\item[\code{p.value}] the p-value for the test.
\item[\code{method}] the character string \code{"Shapiro-Wilk normality test"}.
\item[\code{data.name}] a character string giving the name(s) of the data.
\end{ldescription}
\end{Value}
\begin{References}\relax
Patrick Royston (1982)
An Extension of Shapiro and Wilk's \eqn{W}{} Test for Normality to Large
Samples.
\emph{Applied Statistics}, \bold{31}, 115--124.

Patrick Royston (1982)
Algorithm AS 181: The \eqn{W}{} Test for Normality.
\emph{Applied Statistics}, \bold{31}, 176--180.

Patrick Royston (1995)
A Remark on Algorithm AS 181: The \eqn{W}{} Test for Normality.
\emph{Applied Statistics}, \bold{44}, 547--551.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{qqnorm}{qqnorm}} for producing a normal quantile-quantile plot.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
shapiro.test(rnorm(100, mean = 5, sd = 3))
shapiro.test(runif(100, min = 2, max = 4))
\end{ExampleCode}
\end{Examples}

