This function performs the ABC and W statistic calculation.
abc(df, Perm, confInt)
An abc
S4 object has the fallowing elements:
An abc slot with:
The cumulative percentage of abundance contribution.
The cumulative percentage of biomass contribution.
Biomass - Abundance calculation results.
and a W.Stat slot with:
The result of the W statistic calculation and its Confidence Interval.
a numeric data frame containing the abundance and biomass as columns and taxa as rows. NAs are not allowed.
the number of permutations to be realized for calculating the Confidence Interval.
the Confidence interval range (90%, 95% or 99%, any other values will cause an error).
Rodrigo Aluizio
The function generates a list of cumulative percentage values of Abundance, Biomass and Biomass - Abundance for each taxon (Warwick 1986), which are used for W statistic (Warwick & Clarke 1994) calculation and posterior k-dominance curve plotting.
Warwick, R.M. (1986). A new method for detecting pollution effects on marine macrobenthic communities. Marine Biology 92 (4), 557-562.
Warwick, R.M., & Clarke, K.R. (1994). Relearning the ABC: taxonomic changes and abundance/biomass relationships in disturbed benthic communities. Marine Biology 118 (4), 739-744.
data(NB)
MyABC <- abc(NB)
plot(MyABC)
Run the code above in your browser using DataLab