HERACLES_ImportanceSampling | R Documentation |
Computes likelihood and metrics for randomly sampled presence-absence data of species in a local community for a given phylogeny of species in the region.
HERACLES_ImportanceSampling(
nSamples,
n,
regionalSpecies,
S_regional,
p = n/S_regional,
pa,
phy,
phydist,
parsDAM,
Mlist = NULL,
model,
pchoice,
samptype,
edgeObj = NULL,
methode = "analytical",
traitdist = NULL
)
nSamples |
The number of samples used in importance sampling |
n |
The number of species in the local community |
regionalSpecies |
The list of species present in the regional community (SP) |
S_regional |
The number of species in the regional species pool |
p |
The probability used for the binomial distribution |
pa |
presence-absence table with the first column the species labels and the second column the presence (1) or absence (0) of the species |
phy |
phylogeny in phylo format |
phydist |
TBD |
parsDAM |
Vector of model parameters: |
Mlist |
list of M matrices that can be specified when methode = 'analytical'. If set at NULL (default) and methode = 'analytical', Mlist will be computed. |
model |
model used. Default is 0 (standard null model). Other options are 1 (binary traits) 2 (trinary environmental trait) or 3 (diversity-dependent colonization - beta version) |
pchoice |
sets the p-value to optimize: |
samptype |
Type of sampling distribution, can be either 'uniform' or 'binomial' in which case the local samples are uniformly or binomially generated, with the local diversity being a stochastic variable, or 'fixed' in which case the observed local diversity is used and configurations consistent with this diversity are sampled |
edgeObj |
list of edge lengths that need to be successively pruned; if not specified, it will computed using compute_edgeTList |
methode |
method used to solve the ODE. Either 'analytical' for the analytical solution, 'Matrix' for matrix exponentiation using package Matrix or 'expm' using package 'expm' or any of the numerical solvers, used in deSolve. |
traitdist |
TBD |
A list containing attributes of the loglikelihood and importance sampling, and of the metrics (mntd and mpd, and TBD)
Rampal S. Etienne & Alex L. Pigot
Pigot, A.L. & R.S. Etienne (2015). A new dynamic null model for phylogenetic community structure. Ecology Letters 18: 153-163.
cat('No examples yet') #TBD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.