get_ana_rate: Calculate anagenesis rate

View source: R/DAISIE_rates.R

get_ana_rateR Documentation

Calculate anagenesis rate

Description

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

Usage

get_ana_rate(laa, num_immigrants, island_spec = NULL, trait_pars = NULL)

Arguments

laa

A numeric with the per capita anagenesis rate.

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, Shu Xie

See Also

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


DAISIE documentation built on Oct. 22, 2023, 1:06 a.m.