DAISIE_sample_event: Samples what event to happen next

Description Usage Arguments Value Author(s)

View source: R/DAISIE_sample_event.R

Description

Samples what event to happen next

Usage

1
DAISIE_sample_event(rates, island_ontogeny = NULL, Tpars = NULL)

Arguments

rates

numeric list with probability rates for each event. In the ontogeny case it also contains the maximum possible probability for the event at each timestep.

island_ontogeny

a string describing the type of island ontogeny. Can be NULL, "beta" for a beta function describing area through time, or "linear" for a linear function

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

numeric indicating what event will happen, or a supposed event that would happen in some timesteps of the ontogeny algorithm.

Author(s)

Pedro Neves


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