Learn R Programming

Johnson (version 1.0)

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

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

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