Learn R Programming

spc4sts (version 0.1.1)

ad: One-Sample Anderson-Darling Statistic

Description

Computes the one-sample Anderson-Darling (AD) statistic.

Usage

ad(r, P)

Arguments

r

the given vector/matrix of observations

P

the vector/matrix containing the respective values of a (reference) cumulative distribution function for r.

Value

The AD statistic.

References

Bui, A.T., and Apley., D.W. (2017) A Monitoring and Diagnostic Approach for Stochastic Textured Surfaces", Technometrics (in press).

See Also

exptailecdf, sms, bp

Examples

Run this code
# NOT RUN {
img <- matrix(rnorm(100), 10, 10)
ad(img, pnorm(img))
# }

Run the code above in your browser using DataLab