Null Distribution of Anderson-Darling Test Statistic
pAD
computes the cumulative distribution function,
and qAD
computes the quantile function,
of the null distribution of the Anderson-Darling test
statistic.
pAD(q, n = Inf, lower.tail = TRUE, fast=TRUE) qAD(p, n = Inf, lower.tail = TRUE, fast=TRUE)
q |
Numeric vector of quantiles (values for which the cumulative probability is required). |
p |
Numeric vector of probabilities. |
n |
Integer. Sample size for the Anderson-Darling test. |
lower.tail |
Logical. If |
fast |
Logical value indicating whether to use a fast algorithm
or a slower, more accurate algorithm, in the case |
pAD
uses the algorithms and C code described
in Marsaglia and Marsaglia (2004).
qAD
uses uniroot
to find the
quantiles.
The argument fast
applies only when n=Inf
and determines whether the asymptotic distribution is approximated
using the faster algorithm adinf
(accurate to 4-5 places)
or the slower algorithm ADinf
(accurate to 11 places)
described in Marsaglia and Marsaglia (2004).
A numeric vector of the same length as p
or q
.
Original C code by G. and J. Marsaglia. R interface by Adrian Baddeley.
Anderson, T.W. and Darling, D.A. (1952) Asymptotic theory of certain 'goodness-of-fit' criteria based on stochastic processes. Annals of Mathematical Statistics 23, 193–212.
Anderson, T.W. and Darling, D.A. (1954) A test of goodness of fit. Journal of the American Statistical Association 49, 765–769.
Marsaglia, G. and Marsaglia, J. (2004) Evaluating the Anderson-Darling Distribution. Journal of Statistical Software 9 (2), 1–5. February 2004. http://www.jstatsoft.org/v09/i02
pAD(1.1, n=5) pAD(1.1) pAD(1.1, fast=FALSE) qAD(0.5, n=5) qAD(0.5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.