randomizing a community phylogenetics matrix: '1a' of Hardy (2008)

Share:

Description

resamp.1a is used for resampling data within a community dataset

Usage

1
resamp.1a(obj, abund.class.ratio = 4)

Arguments

obj

a community dataset in spacodiR format (see as.spacodi)

abund.class.ratio

a ratio defining abundance classes

Details

A resampling procedure for a species-by-plots matrix, where species are shuffled within abundance classes. Species are grouped into distinct abundance classes characterized by a fixed ratio: abund.class.ratio = maximal abundance / minimal abundance. For instance, if abund.class.ratio = 4, the limits between abundance classes could be 1, 4, 16, ... . Species are randomly permuted within each class, which maintains most of the abundance phylogenetic structure originally present in a dataset.

Value

A shuffled dataset

Author(s)

Timothy Paine and Jonathan Eastman

References

HARDY OJ. 2008. Testing the spatial phylogenetic structure of local communities: statistical performances of different null models and test statistics on a locally neutral community. Journal of Ecology 96:914-926.

See Also

spacodi.by.nodes for permutation tests of community diversity and additional randomization methods; see spacodi.calc for the main underlying function; randomizeMatrix

Examples

1
2
3
4
5
6
data(sp.example)
attach(sp.example)
spl

# shuffle dataset
resamp.1a(obj=spl, abund.class.ratio=3) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.