[Vegan-commits] r766 - pkg/vegan/man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Mar 30 17:25:45 CEST 2009
Author: jarioksa
Date: 2009-03-30 17:25:45 +0200 (Mon, 30 Mar 2009)
New Revision: 766
Modified:
pkg/vegan/man/adipart.Rd
pkg/vegan/man/contribdiv.Rd
Log:
minor formatting to improve readability
Modified: pkg/vegan/man/adipart.Rd
===================================================================
--- pkg/vegan/man/adipart.Rd 2009-03-29 14:05:37 UTC (rev 765)
+++ pkg/vegan/man/adipart.Rd 2009-03-30 15:25:45 UTC (rev 766)
@@ -12,11 +12,9 @@
}
\usage{
adipart(formula, data, index=c("richness", "shannon", "simpson"),
-weights=c("unif", "prop"), relative = FALSE, nsimul=99, control, ...)
-\method{print}{adipart}(x, ...)
+ weights=c("unif", "prop"), relative = FALSE, nsimul=99, control, ...)
hiersimu(formula, data, FUN, location = c("mean", "median"),
-relative = FALSE, drop.highest = FALSE, nsimul=99, control, ...)
-\method{print}{hiersimu}(x, ...)
+ relative = FALSE, drop.highest = FALSE, nsimul=99, control, ...)
}
\arguments{
\item{formula}{A two sided model formula in the form \code{y ~ x}, where \code{y} is the community data matrix with samples as rows and species as column. Right hand side (\code{x}) must contain factors referring to levels of sampling hierarchy, terms from right to left will be treated as nested (first column is the lowest, last is the highest level). These variables must be factors in order to unambiguous handling. Interaction terms are not allowed.}
@@ -37,20 +35,14 @@
Additive diversity partitioning means that mean alpha and beta diversity adds up to gamma diversity, thus beta diversity is measured in the same dimensions as alpha and gamma (Lande 1996). This additive procedure is than extended across multiple scales in a hierarchical sampling design with \eqn{i = 1, 2, 3, \ldots, m} levels of sampling (Crist et al. 2003). Samples in lower hierarchical levels are nested within higher level units, thus from \eqn{i=1} to \eqn{i=m} grain size is increasing under constant survey extent. At each level \eqn{i}, \eqn{\alpha_i} denotes average diversity found within samples.
At the highest sampling level, the diversity components are calculated as
-
\deqn{\beta_m = \gamma - \alpha_m}{beta_m = gamma - alpha_m}
-
For each lower sampling level as
\deqn{\beta_i = \alpha_{i+1} - \alpha_i}{beta_i = alpha_i+1 - alpha_i}
-
Then, the additive partition of diversity is
-
\deqn{\gamma = \alpha_1 + \sum_{i=1}^m \beta_i}{gamma = alpha_1 + sum(beta_i)}
Average alpha components can be weighted uniformly (\code{weight="unif"}) to calculate it as simple average, or proportionally to sample abundances (\code{weight="prop"}) to calculate it as weighted average as follows
-
\deqn{\alpha_i = \sum_{j=1}^{n_i} D_{ij} w_{ij}}{alpha_i = sum(D_ij*w_ij)}
-
where \eqn{D_{ij}} is the diversity index and \eqn{w_{ij}} is the weight calculated for the \eqn{j}th sample at the \eqn{i}th sampling level.
The implementation of additive diversity partitioning follows Crist et al. 2003. It is based on species richness (\eqn{S}, not \eqn{S-1}), Shannon's and Simpson's diversity indices.
Modified: pkg/vegan/man/contribdiv.Rd
===================================================================
--- pkg/vegan/man/contribdiv.Rd 2009-03-29 14:05:37 UTC (rev 765)
+++ pkg/vegan/man/contribdiv.Rd 2009-03-30 15:25:45 UTC (rev 766)
@@ -8,7 +8,7 @@
}
\usage{
contribdiv(comm, index = c("richness", "simpson"),
-relative = FALSE, scaled = TRUE, drop.zero = FALSE)
+ relative = FALSE, scaled = TRUE, drop.zero = FALSE)
\method{plot}{contribdiv}(x, sub, xlab, ylab, ylim, col, ...)
}
\arguments{
@@ -26,7 +26,7 @@
Species distinctiveness of species \eqn{j} can be defined as the number of sites where it occurs (\eqn{n_j}), or the sum of its relative frequencies (\eqn{p_j}). Relative frequencies are computed sitewise and \eqn{sum_j{p_ij}}s at site \eqn{i} sum up to \eqn{1}.
-The contribution of site \eqn{i} to the total diversity is given by \eqn{alpha_i = sum_j(1 / n_ij)} when dealing with richness and \eqn{alpha_i = sum(p_ij * (1 - p_ij))} for the Simpson index.
+The contribution of site \eqn{i} to the total diversity is given by \eqn{alpha_i = sum_j(1 / n_ij)} when dealing with richness and \eqn{alpha_i = sum(p_{ij} * (1 - p_{ij}))} for the Simpson index.
The unit distinctiveness of site \eqn{i} is the average of the species distinctiveness, averaging only those species which occur at site \eqn{i}. For species richness: \eqn{alpha_i = mean(n_i)} (in the paper, the second equation contains a typo, \eqn{n} is without index). For the Simpson index: \eqn{alpha_i = mean(n_i)}.
More information about the Vegan-commits
mailing list