Internal function. Calculates the cladogenesis rate given the current number of species in the system, the carrying capacity and the per capita cladogenesis rate
get_clado_rate(
lac,
hyper_pars,
num_spec,
K,
A,
trait_pars = NULL,
island_spec = NULL
)
A numeric with the per capita cladogenesis rate.
A named list of numeric hyperparameters for the rate
calculations as returned by create_hyper_pars()
:
[1]: is d the scaling parameter for exponent for calculating cladogenesis rate
[2]: is x the exponent for calculating extinction rate
A numeric with the current number of species.
A numeric with carrying capacity.
A numeric value for island area at a given point in time.
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
Matrix with current state of simulation containing number of species.
Pedro Neves, Joshua Lambert, Shu Xie