Description Usage Arguments Details Value Author(s) References See Also Examples
pAD
computes the cumulative distribution function,
and qAD
computes the quantile function,
of the null distribution of the Anderson-Darling test
statistic.
1 2 |
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. doi: 10.18637/jss.v009.i02
1 2 3 4 5 6 |
[1] 0.6945818
[1] 0.6911871
[1] 0.6912038
[1] 0.7640094
[1] 0.7742347
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.