| Line 1... |
Line 1... |
| 1 |
% File src/library/stats/man/shapiro.test.Rd
|
1 |
% File src/library/stats/man/shapiro.test.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2018 R Core Team
|
3 |
% Copyright 1995-2025 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{shapiro.test}
|
6 |
\name{shapiro.test}
|
| 7 |
\alias{shapiro.test}
|
7 |
\alias{shapiro.test}
|
| 8 |
\title{\I{Shapiro}-\I{Wilk} Normality Test}
|
8 |
\title{\I{Shapiro}-\I{Wilk} Normality Test}
|
| Line 18... |
Line 18... |
| 18 |
}
|
18 |
}
|
| 19 |
\value{
|
19 |
\value{
|
| 20 |
A list with class \code{"htest"} containing the following components:
|
20 |
A list with class \code{"htest"} containing the following components:
|
| 21 |
\item{statistic}{the value of the \I{Shapiro}-\I{Wilk} statistic.}
|
21 |
\item{statistic}{the value of the \I{Shapiro}-\I{Wilk} statistic.}
|
| 22 |
\item{p.value}{an approximate p-value for the test. This is
|
22 |
\item{p.value}{an approximate p-value for the test. This is
|
| 23 |
said in \bibcite{Royston (1995)} to be adequate for \code{p.value < 0.1}.}
|
23 |
said in \bibcitet{R:Royston:1995} to be adequate for \code{p.value < 0.1}.}
|
| 24 |
\item{method}{the character string \code{"Shapiro-Wilk normality test"}.}
|
24 |
\item{method}{the character string \code{"Shapiro-Wilk normality test"}.}
|
| 25 |
\item{data.name}{a character string giving the name(s) of the data.}
|
25 |
\item{data.name}{a character string giving the name(s) of the data.}
|
| 26 |
}
|
26 |
}
|
| 27 |
\references{
|
- |
|
| 28 |
Patrick Royston (1982).
|
- |
|
| 29 |
An extension of Shapiro and Wilk's \eqn{W} test for normality to large
|
- |
|
| 30 |
samples.
|
- |
|
| 31 |
\emph{Applied Statistics}, \bold{31}, 115--124.
|
- |
|
| 32 |
\doi{10.2307/2347973}.
|
- |
|
| 33 |
|
- |
|
| 34 |
Patrick Royston (1982).
|
- |
|
| 35 |
Algorithm AS 181: The \eqn{W} test for Normality.
|
- |
|
| 36 |
\emph{Applied Statistics}, \bold{31}, 176--180.
|
- |
|
| 37 |
\doi{10.2307/2347986}.
|
- |
|
| 38 |
|
- |
|
| 39 |
Patrick Royston (1995).
|
- |
|
| 40 |
Remark AS R94: A remark on Algorithm AS 181: The \eqn{W} test for
|
- |
|
| 41 |
normality.
|
- |
|
| 42 |
\emph{Applied Statistics}, \bold{44}, 547--551.
|
- |
|
| 43 |
\doi{10.2307/2986146}.
|
- |
|
| 44 |
}
|
- |
|
| 45 |
\source{
|
27 |
\source{
|
| 46 |
The algorithm used is a C translation of the Fortran code described in
|
28 |
The algorithm used is a C translation of the Fortran code described in
|
| 47 |
Royston (1995). % and was found at \url{http://lib.stat.cmu.edu/apstat/R94}.
|
29 |
\bibcitet{R:Royston:1995}. % and was found at \url{http://lib.stat.cmu.edu/apstat/R94}.
|
| 48 |
The calculation of the p value is exact for \eqn{n = 3}, otherwise
|
30 |
The calculation of the p value is exact for \eqn{n = 3}, otherwise
|
| 49 |
approximations are used, separately for \eqn{4 \le n \le 11} and
|
31 |
approximations are used, separately for \eqn{4 \le n \le 11} and
|
| 50 |
\eqn{n \ge 12}.
|
32 |
\eqn{n \ge 12}.
|
| 51 |
}
|
33 |
}
|
| - |
|
34 |
\references{
|
| - |
|
35 |
\bibshow{*, R:Royston:1982a, R:Royston:1982b}
|
| - |
|
36 |
}
|
| 52 |
\seealso{
|
37 |
\seealso{
|
| 53 |
\code{\link{qqnorm}} for producing a normal quantile-quantile plot.
|
38 |
\code{\link{qqnorm}} for producing a normal quantile-quantile plot.
|
| 54 |
}
|
39 |
}
|
| 55 |
% FIXME: could use something more interesting here
|
40 |
% FIXME: could use something more interesting here
|
| 56 |
\examples{
|
41 |
\examples{
|