AD.dist {nsRFA} | R Documentation |
Distance matrix for growth curves. Every element of the matrix is the Anderson-Darling statistic calculated between two series.
AD.dist (x, cod, index=2)
x |
vector representing data from many samples defined with cod |
cod |
array that defines the data subdivision among sites |
index |
if index =1 samples are divided by their average value;
if index =2 (default) samples are divided by their median value |
The Anderson-Darling statistic used here is the one defined in http://en.wikipedia.org/wiki/Anderson-Darling_test as A2.
AD.dist
returns the distance matrix between growth-curves built with the Anderson-Darling statistic.
For information on the package and the Author, and for all the references, see nsRFA
.
data(hydroSIMN) annualflows summary(annualflows) x <- annualflows["dato"][,] cod <- annualflows["cod"][,] # Ad.dist AD.dist(x,cod) # it takes some time