Learn R Programming

SciencesPo (version 1.3.9)

anderson.darling: Anderson-Darling test for normality

Description

Performs the Anderson-Darling test for the composite hypothesis of normality. See details.

Usage

anderson.darling(x)

Arguments

x
A numeric vector of data values, the number of observations must be greater than 7. Missing values are allowed.

encoding

UTF-8

Details

The Anderson-Darling test is the recommended EDF test by Stephens (1986) followed by the Cramer-von Mises test. Compared to the later, the Anderson-Darling gives more weight to the tails of the distribution.

Examples

Run this code
set.seed(1234)
x = rnorm(1000)
anderson.darling(x)

Run the code above in your browser using DataLab