pbd_numspec_median_checked: Calcates the median number of species under protracted...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pbd_numspec_checked.R

Description

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.

Usage

1
pbd_numspec_median_checked(erg, eri, scr, sir, crown_age)

Arguments

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

Value

The median number of representative species

Author(s)

Richel J.C. Bilderbeek

See Also

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.

Examples

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)

richelbilderbeek/becosys documentation built on Oct. 19, 2020, 9:20 a.m.