Usage
pop.sim(regmat, neighbors, h0c = 1, times = 200, dist = "kulczynski",
teststat = "isovertice", testc = NA, n.species = ncol(regmat),
specperreg = NA, regperspec = NA, species.fixed=FALSE, pdfnb=pdfnb)
Arguments
regmat
0-1-matrix. Columns are species, rows are regions.
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 numeric(0).
h0c
numerical. Parameter p.nb for use in randpop.nb.
times
integer. Number of simulation runs.
dist
"kulczynski" or "jaccard", see kulczynski and
jaccard.
teststat
"isovertice", "lcomponent", "distratio", "nn" or
"inclusions". See
the corresponding functions, homogen.test for "isovertice",
incmatrix for "inclusions").
testc
numerical. Tuning constant for the test statistics.
n.species
integer. Number of species.
specperreg
vector of integers. Numbers of species per region
(is calculated from the data by default).
regperspec
vector of integers. Number of regions per species
(is calculated from the data by default).
species.fixed
logical. If TRUE, the sizes of the species
are taken directly from regmat. Otherwise, they are drawn by
random from the empirical distribution of the values from
regmat.
pdfnb
logical. Probability correction in randpop.nb.