Usage
prabtest(x, teststat = "distratio", tuning=switch(teststat,distratio=0.25,
lcomponent=floor(3*ncol(x$distmat)/4),
isovertice=ncol(x$distmat),nn=4,NA), times = 1000, pd = NULL,
prange = c(0, 1), nperp = 4, step = 0.1, twostep = TRUE, sf.sim = FALSE,
sf.const = sf.sim, pdfnb=FALSE)
Arguments
x
an object of class prab (presence-absence data), as
generated by prabinit.
teststat
string, indicating the test statistics. "isovertice":
number of isolated vertices in the graph of tuning
smallest distances
between species. "lcomponent": size of largest connectivity
component in thi
tuning
integer or (if teststat="distratio") numerical
between 0 and 1. Tuning constant for test statistics, see
teststat.
times
integer. Number of simulation runs.
pd
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. If NA (the default),
prabtest estimates this by function
prange
numerical range vector, lower value not smaller than 0, larger
value not larger than 1. Range where pd is to be found. Used
by function autoconst.
nperp
integer. Number of simulations per pd-value. Used
by function autoconst.
step
numerical between 0 and 1. Interval length between
subsequent choices of pd for the first simulation. Used
by function autoconst.
twostep
logical. If TRUE, a first estimation step for
pd is
carried out in the whole prange, and then the final
estimation is determined between the preliminary estimator
-5*step2 and {+5*step2}.
sf.sim
logical. Indicates if the range sizes of the species
are held fixed
in the test simulation (TRUE) or generated from their empirical
distribution in x (FALSE). See function randpop.nb.
sf.const
logical. Same as sf.sim, but for estimation of
pd by autoconst.
pdfnb
logical. If TRUE, the probabilities of the regions
are modified according to the number of neighboring regions in
randpop.nb, see Hennig and Hausdorf (2002), p. 5. This is
usually no improvement.