Description Usage Arguments Value Note Author(s) Examples
Calculate the clade-wide cladogenesis rate.
1 | DAISIE_calc_clade_clado_rate(ps_clado_rate, n_species, carr_cap)
|
ps_clado_rate |
per species cladogenesis rate |
n_species |
number of species in that clade |
carr_cap |
carrying capacity, number of species this clade will grow to |
the clade's cladogenesis rate, which is at least zero. This rate will be zero if there are more species than the carrying capacity allows for
For clade-specific carrying capacity,
each clade is simulated seperately in DAISIE_sim
Richel J.C. Bilderbeek
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | testit::assert(
DAISIE_calc_clade_clado_rate(
ps_clado_rate = 0.2,
n_species = 5,
carr_cap = 10
) == 0.5
)
testit::assert(
DAISIE_calc_clade_clado_rate(
ps_clado_rate = 0.2,
n_species = 2,
carr_cap = 1
) == 0.0
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.