Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

randomizeSample

Null models for community data matrix randomization


Description

Various null models for randomizing community data matrices

Usage

randomizeMatrix(samp, null.model = c("frequency", "richness",
    "independentswap", "trialswap"), iterations = 1000)

Arguments

samp

Community data matrix

null.model

Null model to use (see Details section for description)

iterations

Number of independent or trial-swaps to perform

Details

Currently implemented null models (arguments to null.model):

frequency

Randomize community data matrix abundances within species (maintains species occurence frequency)

richness

Randomize community data matrix abundances within samples (maintains sample species richness)

independentswap

Randomize community data matrix with the independent swap algorithm (Gotelli 2000) maintaining species occurrence frequency and sample species richness

trialswap

Randomize community data matrix with the trial-swap algorithm (Miklos & Podani 2004) maintaining species occurrence frequency and sample species richness

Value

Randomized community data matrix

Author(s)

Steven Kembel <steve.kembel@gmail.com>

References

Gotelli, N.J. 2000. Null model analysis of species co-occurrence patterns. Ecology 81: 2606-2621

Miklos I. & Podani J. 2004. Randomization of presence-absence matrices: Comments and new algorithms. Ecology 85: 86-92.

Examples

data(phylocom)
randomizeMatrix(phylocom$sample, null.model="richness")

picante

Integrating Phylogenies and Ecology

v1.8.2
GPL-2
Authors
Steven W. Kembel <steve.kembel@gmail.com>, David D. Ackerly <dackerly@berkeley.edu>, Simon P. Blomberg <s.blomberg1@uq.edu.au>, Will K. Cornwell <cornwell@zoology.ubc.ca>, Peter D. Cowan <pdc@berkeley.edu>, Matthew R. Helmus <mrhelmus@wisc.edu>, Helene Morlon <morlon.helene@gmail.com>, Campbell O. Webb <cwebb@oeb.harvard.edu>
Initial release
2020-06-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.