DAISIE_sim_update_state: Updates state of island given sampled event

Description Usage Arguments See Also

View source: R/DAISIE_sim_update_state.R

Description

Makes the event happen by updating island species matrix and species IDs. What event happens is determined by the sampling in the algorithm.

Usage

1
2
DAISIE_sim_update_state(timeval, totaltime, possible_event, maxspecID,
  mainland_spec, island_spec, stt_table, Tpars)

Arguments

timeval

current time of simulation

totaltime

simulated amount of time

possible_event

numeric indicating what event will happen.

maxspecID

current species IDs

mainland_spec

number of mainland species

island_spec

A matrix with species on island (state of system at each time point)

stt_table

A species-through-time table

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

See Also

DAISIE_sim_core


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