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)numeric(0).species.fixed=TRUE, vector.species must have length
n.species and gives the sizes (i.e., numbers of regions) of
the species to generate. Else, the sizes are generated randomly from
vector.species.n.species. The
entries must sum up to 1 and give probabilities for the regions to
be drawn during the generation of a species. These probabilities are
used conditional on the new region being a neighbor TRUE, the number of the currently
generated species is printed.TRUE, the probabilities of the regions
are modified according to the number of neighboring regions by
dividing them relative to the others by min(1,number of neighbors).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.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.
autoconst estimates p.nb from matrices of class
prab. These are generated by prabinit.
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))Run the code above in your browser using DataLab