Description Usage Arguments Value Author(s) See Also Examples
View source: R/pbd_numspec_checked.R
Calcates the median number of species under protracted birth-death model of
diversification. This is a checked version with a more explicit interface
than pbd_numspec_median
.
1 | pbd_numspec_median_checked(erg, eri, scr, sir, crown_age)
|
erg |
extinction rate of a good species |
eri |
extinction rate of an incipient species |
scr |
speciation completion rate |
sir |
speciation initiation rate. This function assumes the speciation initiation rates of good and incipient species are equal. |
crown_age |
the crown age |
The median number of representative species
Richel J.C. Bilderbeek
pbd_numspec_median
provides for setting a time-dependence
in the parameters and/or specify a stem age.
pbd_numspec_mean_checked
calculates the
mean number of species.
1 2 3 4 5 6 7 8 9 | median_n_species <- pbd_numspec_median_checked(
erg = 1.2,
eri = 2.3,
scr = 3.4,
sir = 4.5,
crown_age = 6.7
)
median_n_species_expected <- 99408712
testthat::expect_equal(median_n_species, median_n_species_expected)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.