DAISIE_calc_clade_clado_rate: Calculate the clade-wide cladogenesis rate.

Description Usage Arguments Value Note Author(s) Examples

View source: R/DAISIE_sim_core_1_4.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:::DAISIE_calc_clade_clado_rate(
      ps_clado_rate = 0.2,
      n_species = 5,
      carr_cap = 10
    ) == 0.5
  )
  testit::assert(
    DAISIE:::DAISIE_calc_clade_clado_rate(
      ps_clado_rate = 0.2,
      n_species = 2,
      carr_cap = 1
    ) == 0.0
  )

DAISIE documentation built on Aug. 26, 2020, 5:12 p.m.