get_immig_rate: Calculate immigration rate

View source: R/DAISIE_rates.R

get_immig_rateR Documentation

Calculate immigration rate

Description

Internal function. Calculates the immigration rate given the current number of species in the system, the carrying capacity

Usage

get_immig_rate(
  gam,
  A = 1,
  num_spec,
  K,
  mainland_n,
  trait_pars = NULL,
  island_spec = NULL
)

Arguments

gam

A numeric with the per capita immigration rate.

A

A numeric value for island area at a given point in time.

num_spec

A numeric with the current number of species.

K

A numeric with carrying capacity.

mainland_n

A numeric stating the number of mainland species, that is the number of species that can potentially colonize the island. If using a clade-specific diversity dependence, this value is set to 1. If using an island-wide diversity dependence, this value is set to the number of mainland 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

island_spec

Matrix with current state of simulation containing number of species.

Author(s)

Pedro Neves, Joshua Lambert

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.

See Also

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


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