Construct a vegan::commsim() object that uses quantize() as a
non-sequential null model for numeric community matrices.
Each simulated matrix is generated independently by applying
quantize() with n_iter trades (via its internal call to
nullcat()) starting from the original matrix.
Arguments
- n_iter
Integer, number of iterations (trades) per simulated matrix. Must be a positive integer. Default is
1e4.- ...
Arguments passed to
quantize(), such asbreaks,n_strata,transform,offset,zero_stratum,fixed,method, etc. Do not supplyxorn_iterhere; these are set internally byquantize_commsim(). Seequantize()for details.
Value
An object of class "commsim" suitable for
vegan::nullmodel() and vegan::oecosimu().
Details
This generates a commsim object that is non-sequential:
each simulated matrix starts from the original matrix and is
randomized independently using n_iter trades of the chosen
method.
When used via vegan::simulate.nullmodel(), the arguments behave as:
nsim: number of simulated matrices to generate.n_iter(here, innullcat_commsim()): number of trades per simulated matrix (controls how strongly each replicate is shuffled).burninandthin: are ignored for this commsim, becauseisSeq = FALSE(the simulations are not a Markov chain).
In other words, treat n_iter as the tuning parameter for how
thoroughly each independent null matrix is randomized.
See also
quantize_batch() if you just want a batch of null matrices
without going through vegan.
