indSwapTest | R Documentation |
This is largely a copy of the function simPlusMinus
but
using the independent swap algorithm from {picante}
Simulate spatial replicates of abundance data and apply the same analytical pipeline to those data that would be applied to real data
indSwapTest(sadStats, mcCores, ssadType = "nbinom", kfun, nsim)
simPlusMinus(sadStats, mcCores, ssadType = "nbinom", kfun, nsim)
simpleSim(nsite, nspp, mcCores, sadfun, ssadfun, nsim)
sadStats |
a |
mcCores |
number of cores to use in |
ssadType |
string specifying SSAD shape (e.g. |
kfun |
function to relate k parameter of the SSAD to abundance |
nsim |
number of simulations to run |
nsite |
number of sites to simulate |
nspp |
number of species to simulate |
sadfun |
function to generate random SAD sample |
ssadfun |
function to generate random SSAD sample |
simPlusMinus
draws random SAD and SSAD shapes from the raw data
and uses these to simulate more data and calculate network statistics on those
simulated data. simpleSim
assumes one SAD and one SSAD and simulates data from
those, again calculated network statistics.
Note: any value passed to ssadType
other than 'nbinom'
results
in a Poisson SSAD (i.e., there are only two options, negative binomial specified by
'nbinom'
or Poisson specified by anything else)
a data.frame
with <= nsim
rows (some simulations may be
thrown out if they do not meet data filtering requirements), and columns corresponding
to summary statistics about the positive and negative network characteristics
a data.frame
with <= nsim
rows (some simulations may be
thrown out if they do not meet data filtering requirements), and columns corresponding
to summary statistics about the positive and negative network characteristics
Andy Rominger <ajrominger@gmail.com>
Andy Rominger <ajrominger@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.