Computes the diversity of multivariate phenotypic or species composition datasets in a group-wise hierarchical framework (Marion et al. in press). The method provides several benefits. First, partitioning complexity in terms of Hill numbers (Hill 1973) or the 'effective number' of parts (Jost 2006, 2007) offers biologically interpretable and relevant estimates of phenotypic or species complexity. Second, diversities can be calculated for any order (q) as a continuous estimate of disparity in the abundances, counts, or concentrations of phenotypic parts. Third, for a given hierarchical level, the pooled total phenotypic complexity (gamma) is multiplicatively partitioned into two components: 1) a within-group component (alpha), the average effective number of phenotypic subunits expected within a sample from the group; and 2) an among-group component (beta), the effective number of completely distinct phenotypic combinations found within the group. Finally, uncertainty around diversity estimates is approximated using hierarchical bootstrapping.
|License:||GPL >= 2|
The package contains two functions. The first function,
dz, computes alpha, beta, and gamma diversity as 'effective numbers' for any order of q. The second function, hierDiversity, uses group-wise hierarchical partitioning (Marion et al. in press) to calculate phenotypic diversity for each group within a hierarchical level. Proportional turnover and homogeneity are also provided as standardized alternatives to beta diversity for comparisons among groups when sample sizes are uneven. Hierarchical bootstrapping approximates uncertainty by resampling appropriate subgroups within a level. Although designed for phenotypic complexity, the package is all appropriate for community composition data as well. Group-wise partitioning provides a complement to the level-wise partitioning approach proposed by Crist et al. (2003).
Crist, T.O., J.A. Veech, J.C. Gering, and K.S. Summerville (2003). Partitioning species diversity across landscapes and regions: a hierarchical analysis of α, β, and γ-diversity. Am. Nat., 162(6): 734–743.
Hill, M.O. (1973). Diversity and evenness: a unifying notation and its consequences. Ecology, 54(2): 427–432.
Jost, L. (2006). Entropy and diversity. Oikos, 113(2): 363–375.
Jost, L. (2007). Partitioning diversity into independent alpha and beta components. Ecology, 88(10): 2427–2439.
Marion, Z.H., J.A. Fordyce, and B.M. Fitzpatrick. Extending the concept of diversity partitioning to characterize complex phenotypes. Am. Nat.. in press.
1 2 3 4 5 6 7 8 9 10 11 12
set.seed(2) dat <- matrix(rpois(100, lambda = 3), nrow = 10) dz(abundances = dat, lev = "beta", q = 2) #1.336 #Create Grouping Matrix group <- as.matrix(data.frame( L1 = rep(c("A","B","C","D","E"), each=2), L2 = rep(c("AB", "CDE"), times=c(4,6)), L3 = rep("total",10))) hierDiversity(dat, group, reps=9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.