Simulation of presence-absence matrices (non-clustered)
Generates a simulated matrix where the rows are interpreted as regions
and the columns as species, 1 means that a species is present in the
region and 0 means that the species is absent. Species are generated
i.i.d.. Spatial autocorrelation of a species' presences is governed by
the parameter p.nb
and a list of neighbors for each region.
randpop.nb(neighbors, p.nb = 0.5, n.species, n.regions = length(neighbors), vector.species = rep(1, n.species), species.fixed = FALSE, pdf.regions = rep(1/n.regions, n.regions), count = TRUE, pdfnb = FALSE)
neighbors |
A list with a component for every region. The
components are vectors of integers indicating
neighboring regions. A region without neighbors (e.g., an island)
should be assigned a list |
p.nb |
numerical between 0 and 1. The probability that a new
region is drawn from the non-neighborhood of the previous regions
belonging to a species under generation. Note that for a given
presence-absence matrix, this parameter can be estimated by
|
n.species |
integer. Number of species. |
n.regions |
integer. Number of regions. |
vector.species |
vector of integers. If
|
species.fixed |
logical. See |
pdf.regions |
numerical vector of length |
count |
logical. If |
pdfnb |
logical. If |
The principle is that a single species with given size is generated
one-by-one region. The first region is drawn according to
pdf.regions
. For all following regions, a neighbor or
non-neighbor of the previous configuration is added (if possible),
as explained in pdf.regions
, p.nb
.
A 0-1-matrix, rows are regions, columns are species.
Hennig, C. and Hausdorf, B. (2004) Distance-based parametric bootstrap tests for clustering of species ranges. Computational Statistics and Data Analysis 45, 875-896. http://stat.ethz.ch/Research-Reports/110.html.
Hausdorf, B. and Hennig, C. (2003) Biotic Element Analysis in Biogeography. Systematic Biology 52, 717-723.
Hausdorf, B. and Hennig, C. (2003) Nestedness of nerth-west European land snail ranges as a consequence of differential immigration from Pleistocene glacial refuges. Oecologia 135, 102-109.
prabtest
uses randpop.nb
as a null model for
tests of clustering. An alternative model is given by
cluspop.nb
.
data(nb) set.seed(2346) randpop.nb(nb, p.nb=0.1, n.species=5, vector.species=c(1,10,20,30,34))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.