ADtest: Anderson-Darling test of uniformity

Description Usage Arguments Value References Examples

Description

Anderson-Darling test of uniformity

Anderson-Darling p-value

Usage

1
2
3
ADtest(x)

AD_pval(n, z)

Arguments

x

a numeric vector (preferably longer than 7 elements)

n

length of original sequence

z

Anderson-Darling test statistic

Value

an object of class htest containing the test statistic and p-value for a test against a null hypothesis of uniformity

Anderson-Darling p-value

References

George Marsaglia and John Marsaglia (2004) "Evaluating the Anderson-Darling distribution", J. Statistical Software vol. 9, issue i02: http://www.jstatsoft.org/v09/i02/paper

Examples

1
2
3
u <- c(.0392,.0884,.260,.310,.454,.644,.797,.813,.921,.960)
(t1 <- ADtest(u))
AD_pval(length(u),t1$statistic)

bbolker/ADmarsaglia documentation built on May 11, 2019, 9:27 p.m.