get_clado_rate: Calculate cladogenesis rate

Description Usage Arguments Author(s) References

View source: R/DAISIE_rates.R

Description

Internal function. Calculates the cladogenesis rate given the current number of species in the system, the carrying capacity and the per capita cladogenesis rate

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_clado_rate(
  timeval,
  lac,
  hyper_pars = NULL,
  area_pars,
  dist_pars,
  island_ontogeny,
  sea_level = 0,
  num_spec,
  K,
  trait_pars = NULL,
  island_spec = NULL
)

Arguments

timeval

current time of simulation

lac

per capita cladogenesis rate

hyper_pars

A numeric vector for hyperparameters for the rate calculations:

  • [1]: is d_0 the scaling parameter for exponent for calculating cladogenesis rate

  • [2]: is x the exponent for calculating extinction rate

  • [3]: is alpha, the exponent for calculating the immigration rate

  • [4]: is beta the exponent for calculating the anagenesis rate.

area_pars

a named list containing area and sea level parameters as created by create_area_pars:

  • [1]: maximum area

  • [2]: value from 0 to 1 indicating where in the island's history the peak area is achieved

  • [3]: sharpness of peak

  • [4]: total island age

  • [5]: amplitude of area fluctuation from sea level

  • [6]: frequency of sine wave of area change from sea level

dist_pars

a numeric for the distance from the mainland.

island_ontogeny

a numeric describing the type of island ontogeny. Can be NULL, 1 for a beta function describing area through time.

sea_level

a numeric describing sea level can be NULL

num_spec

a numeric with the ccurrent number of species.

K

carrying capacity

trait_pars

A named list containing diversification rates considering two trait states created by create_trait_pars:

  • [1]:A numeric with the per capita transition rate with state1

  • [2]:A numeric with the per capita immigration rate with state2

  • [3]:A numeric with the per capita extinction rate with state2

  • [4]:A numeric with the per capita anagenesis rate with state2

  • [5]:A numeric with the per capita cladogenesis rate with state2

  • [6]:A numeric with the per capita transition rate with state2

  • [7]:A numeric with the number of species with trait state 2 on mainland

island_spec

Matrix with current state of simulation containing number of species.

Author(s)

Pedro Neves

References

Valente, Luis M., Rampal S. Etienne, and Albert B. Phillimore. "The effects of island ontogeny on species diversity and phylogeny." Proceedings of the Royal Society of London B: Biological Sciences 281.1784 (2014): 20133227.


xieshu95/DAISIE_new documentation built on March 20, 2020, 5:31 a.m.