Usage
pop.sim(regmat, neighbors, h0c = 1, times = 200, dist = "kulczynski",
teststat = "isovertice", testc = NULL, geodist=NULL, gtf=0.1,
n.species = ncol(regmat),
specperreg = NULL, regperspec = NULL, species.fixed=FALSE, pdfnb=FALSE)
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", "jaccard" or "geco", see kulczynski,
geco 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.
geodist
matrix of non-negative reals. Geographical distances
between regions. Only used if dist="geco".
gtf
tuning constant for geco-distance if dist="geco",
see "geco".
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.