get_ana_rate: Calculate anagenesis rate

Description Usage Arguments Author(s) See Also

View source: R/DAISIE_rates.R

Description

Internal function. Calculates the anagenesis rate given the current number of immigrant species and the per capita rate.

Usage

1
2
3
4
5
6
7
8
get_ana_rate(
  laa,
  hyper_pars,
  dist_pars,
  num_immigrants,
  island_spec = NULL,
  trait_pars = NULL
)

Arguments

laa

per capita anagenesis 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.

dist_pars

a numeric for the distance from the mainland.

num_immigrants

a numeric with the current number of non-endemic species (a.k.a non-endemic species).

island_spec

Matrix with current state of simulation containing number of species.

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

Author(s)

Pedro Neves, Joshua Lambert

See Also

Other rate calculations: DAISIE_plot_area(), get_ext_rate(), get_immig_rate(), island_area_vector(), island_area(), update_max_rates(), update_rates()


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