edd_sim | R Documentation |
Simulating the evolutionary distinctiveness dependent diversification process
edd_sim(
pars,
age,
model = "dsce2",
metric = "ed",
offset = "none",
history = TRUE,
verbose = FALSE,
converter = "cpp",
size_limit = 1e+06
)
pars |
Vector of parameters: |
age |
Sets the crown age for the simulation |
model |
Sets the model of diversity-dependence: |
metric |
"pd" , "ed" or "nnd", Specifies which evolutionary distinctiveness metric should be used. |
offset |
Specifies which method to use to offset the impact of tree age and the collinearity between pd and species richness. "none" for no offset method; "simtime" for deducting tree age from pd value; "spcount" for dividing pd value by species richness; "both" for applying both "simtime" and "spcount", by firstly deducting tree age and then dividing by species richness |
history |
Logical, indicating whether to record the historical states (of the rates and ED/PD values) |
verbose |
Logical, for debugging purpose, indicating whether to print simulation info at each step in the console, and save running time to a file |
converter |
Either "cpp" or "r", choose which version of L2phylo to use. |
size_limit |
The maximum number of species allowed in the simulation. |
out |
A list with the following nine elements: The first
element is the tree of extant species in phylo format |
Tianjian Qin, Rampal S. Etienne
edd_sim(
pars = c(0.5, 0.1, -0.001, -0.001, 0.001, 0.001), age = 6,
model = "dsde2", metric = "ed", offset = "none"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.