Library: | stats |
See also: | anddat kstat |
Quantlet: | adstat | |
Description: | calculates Anderson-Darling statistics |
Usage: | {cval,pv} = adstat(x,cdf) | |
Input: | ||
x | n x 1 vector, sample | |
cdf | n x 1 vector, values of the hypothesized cumulative distribution function of x | |
Output: | ||
cval | scalar, test value | |
pv | scalar, p-value |
library("stats") randomize(10) x = uniform(10000) adstat(x,x)
Contents of _tmp.cval [1,] 0.50033 Contents of _tmp.pv [1,] 0.60401