Learn R Programming

Johnson (version 1.4)

RE.ADT: Anderson-Darling test

Description

RE.ADT performs the Anderson-Darling test according to Trujillo-Ortiz(2007)

Usage

RE.ADT(x)

Arguments

x
x vector of observations

Value

The object returned consists of the following items: p-value the resulting p-value of the transformation

Details

For only work with p-values see the second example

References

Trujillo-Ortiz, A., R. H.-W. K. B.-R. & Castro-Perez., A.(2007), "Andartest:anderson-darling test for assessing normality of a sample data.". URL: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14807

See Also

Examples

Run this code
# performing the AD test for a random sample
x <- rnorm(100,10,2)
y <- RE.ADT(x); print(y)

#working with the p-value
x <- runif(100)
y <- RE.ADT(x) $p; print(y)

Run the code above in your browser using DataLab