get_immig_rate: Calculate immigration rate

Description Usage Arguments Author(s) References See Also

View source: R/DAISIE_rates.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
get_immig_rate(
  timeval,
  totaltime,
  gam,
  hyper_pars,
  area_pars,
  dist_pars,
  island_ontogeny,
  sea_level,
  num_spec,
  K,
  mainland_n,
  trait_pars = NULL,
  island_spec = NULL
)

Arguments

timeval

current time of simulation

totaltime

total time of simulation

gam

per capita immigration 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 current number of species.

K

carrying capacity

mainland_n

total number of species present in the mainland

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()


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