| MAMBI | R Documentation |
Calculates M-AMBI the multivariate AMBI index, based on the three separate species diversity metrics:
AMBI index AMBI.
Shannon diversity index H'
Species richness S.
"AMBI, richness and diversity, combined with the use, in a further development, of factor analysis together with discriminant analysis, is presented as an objective tool (named here M-AMBI) in assessing ecological quality status" (Muxika et al., 2007)
MAMBI(
df,
by = NULL,
var_H = "H",
var_S = "S",
var_AMBI = "AMBI",
limits_AMBI = c(bad = 6, high = 0),
limits_H = c(bad = 0, high = NA),
limits_S = c(bad = 0, high = NA),
bounds = c(PB = 0.2, MP = 0.39, GM = 0.53, HG = 0.77)
)
df |
a dataframe of diversity metrics. |
by |
a vector of column names found in |
var_H |
name of the column in |
var_S |
name of the column in |
var_AMBI |
name of the column in |
limits_AMBI |
named vector with length 2, specifying the values of |
limits_H |
named vector with length 2, specifying the values of |
limits_S |
named vector with length 2, specifying the values of |
bounds |
A named vector (length 4) of EQR boundary values used to
normalise M-AMBI to EQR values where the boundary between
Good and Moderate ecological status is 0.6. They
specify the values of M-AMBI corresponding to the boundaries
between (i) Poor and Bad status ( |
The input dataframe df should contain the three metrics AMBI, H' and S,
identified by the column names var_AMBI (default "AMBI"), var_H
(default "H") and var_S (default "S").
If any of these three metrics is not found in the input data, then the function will return an error.
AMBI is calculated using the AMBI() function. H' can be calculated
using the Hdash() function but it is also included as additional output from
AMBI() when called with the non-default argument H = TRUE. S is an output
from both functions AMBI() and Hdash().
This means that the input to MAMBI() can be generated from species count
data using only using the AMBI() function.
a dataframe containing results of the M-AMBI index calculations.
For each unique combination of by variables, the following values are
calculated:
M-AMBI : the M-AMBI index value.
x,y,z : factor scores giving coordinates in the new factor space.
If no by variables are specified (by = NULL), then M-AMBI will be
calculated for each row in df.
In addition, the dataframe returned contains 2 extra rows. These contain
the limits applied for each of the metrics, corresponding to "bad"
(M-AMBI = 0.0) and "high" (M-AMBI = 1.0), as specified in the arguments
limits_AMBI, limits_H, limits_S or taken from data.
Muxika, I., Borja, A., Bald, J. (2007) "Using historical data, expert judgement and multivariate analysis in assessing reference conditions and benthic ecological status, according to the European Water Framework Directive", Marine Pollution Bulletin, 55, 1–6, \Sexpr[results=rd]{tools:::Rd_expr_doi("doi:10.1016/j.marpolbul.2006.05.025")}.
AMBI() which calculates the indices required as input for MAMBI().
df <- data.frame(station = c(1, 1, 1, 2, 2, 2, 3, 3),
replicates = c("a", "b", "c", "a", "b", "c", "a", "b"),
AMBI = c(1.8, 1.5, 1.125, 1.875, 2.133, 1.655, 3.5, 4.75),
H = c(1.055, 0.796, 0.562, 2.072, 2.333, 1.789, 1.561, 1.303),
S = c(3, 3, 2, 12, 12, 10, 5, 6))
MAMBI(df, by = c("station"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.