calc_next_timeval: Calculates when the next timestep will be.

Description Usage Arguments Value Author(s)

View source: R/DAISIE_rates.R

Description

Calculates when the next timestep will be.

Usage

1
calc_next_timeval(rates = rates, timeval = timeval, Tpars = Tpars)

Arguments

rates

list of numeric with probabilities of each event

timeval

current time of simulation

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

named list with numeric vector containing the time of the next timestep and the change in time.

Author(s)

Pedro Neves


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