Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

exp_test_ad

Anderson-Darling Test for Exponentiality


Description

Performs an approximate Anderson-Darling goodness-of-fit test, which verifies the null hypothesis: Data follow an exponential distribution.

Usage

exp_test_ad(x)

Arguments

x

a non-negative numeric vector of data values

Details

Sample size should be not less than 3. Missing values are removed from x before applying the procedure.

The p-value is approximate: its distribution has been estimated by taking 2500000 MC samples. For performance and space reasons, the estimated distribution is recreated by a spline interpolation on a fixed number of points. As a result, the resulting p-value distribution might not necessarily be uniform for p>>0.5.

Value

A list of the class htest is returned, just like in many other testing methods, see, e.g., ks.test.

References

Anderson T.W., Darling D.A., A Test of Goodness-of-Fit, Journal of the American Statistical Association 49, 1954, pp. 765-769.

See Also


agop

Aggregation Operators and Preordered Sets

v0.2-3
LGPL (>= 3)
Authors
Marek Gagolewski [aut, cre] (<https://orcid.org/0000-0003-0637-6028>), Anna Cena [ctb] (<https://orcid.org/0000-0001-8697-5383>)
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.