AD.dist {nsRFA} | R Documentation |
Anderson-Darling distance matrix for growth curves
Description
Distance matrix for growth curves. Every element of the matrix is the Anderson-Darling statistic calculated between two series.
Usage
AD.dist (x, cod, index=2)
Arguments
x |
vector representing data from many samples defined with |
cod |
array that defines the data subdivision among sites |
index |
if |
Details
The Anderson-Darling statistic used here is the one defined in https://en.wikipedia.org/wiki/Anderson-Darling_test as A^2
.
Value
AD.dist
returns the distance matrix between growth-curves built with the Anderson-Darling statistic.
Note
For information on the package and the Author, and for all the references, see nsRFA
.
See Also
Examples
data(hydroSIMN)
annualflows
summary(annualflows)
x <- annualflows["dato"][,]
cod <- annualflows["cod"][,]
# Ad.dist
AD.dist(x,cod) # it takes some time
[Package nsRFA version 0.7-17 Index]