create_rates: Create the rates per ?island

Description Usage Arguments Value Examples

View source: R/create_rates.R

Description

Create the rates per ?island

Usage

1
2
create_rates(immig_rate, ext_rate, ana_rate, clado_rate, ext_rate_max,
  immig_rate_max, clado_rate_max, Tpars = NULL)

Arguments

immig_rate

immigration rate

ext_rate

extinction rate

ana_rate

anagenesis rate

clado_rate

cladogenesis rate

ext_rate_max

maximum extinction rate

immig_rate_max

maximum immigration rate

clado_rate_max

maximum cladogenesis rate

Tpars

A named list containing diversification rates considering two trait states:

  • [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 carrying capacity with trait state 2 on mainland

  • [8]:A numeric with the number of species with trait state 2 on mainland

Value

the rates, as can be verified by are_rates

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
testit::assert(
  DAISIE:::are_rates(
    create_rates(
      immig_rate = 0.1,
      ext_rate = 0.2,
      ana_rate = 0.3,
      clado_rate = 0.4,
      ext_rate_max = 0.5,
      immig_rate_max = 0.6,
      clado_rate_max = 0.7,
      Tpars = NULL
  )
)
)

xieshu95/Trait_dependent_TraiSIE documentation built on Nov. 22, 2019, 7:51 a.m.