DAISIE_calc_clade_clado_rate: Calculate the clade-wide cladogenesis rate.

Description Usage Arguments Value Note Author(s) Examples

View source: R/DAISIE_rates.R

Description

Calculate the clade-wide cladogenesis rate.

Usage

1
DAISIE_calc_clade_clado_rate(ps_clado_rate, n_species, carr_cap)

Arguments

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

Value

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

Note

For clade-specific carrying capacity, each clade is simulated seperately in DAISIE_sim

Author(s)

Richel J.C. Bilderbeek

Examples

 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
  )

xieshu95/Trait_dependent_TraiSIE documentation built on Nov. 22, 2019, 7:51 a.m.