andersonDarlingFun {qAnalyst} | R Documentation |
Function to obtain Anderson Darling statistics and p-value
Description
andersonDarlingFun
returns a vector containing AD test statistics and corresponding p-value, from given data and distribution specification.
Usage
andersonDarlingFun(x, distribution, theta)
Arguments
x |
a vector of data |
distribution |
character string specifying hypothized distribution |
theta |
vector of parameter, coherent with |
Details
andersonDarlingFun
currently supports following distributions: normal, lognormal, gamma, weibull, logistic.
Value
A vector of two elements: statistics and p-value
Note
No notes
Author(s)
Andrea Spano', Enrico Pegoraro, Giorgio Spedicato
References
Stephens, M.A., eds.: Goodness-of-Fit Techniques. Marcel Dekker, New York.
See Also
Examples
data(warpTiles)
x=warpTiles$warping
infoX=funInfoFun(x,"weibull")
andersonDarlingFun(x=x, infoX$densfun, infoX$theta)
[Package qAnalyst version 0.6.4 Index]