pbd_sim_checked: Checked and safer version of PBD::pbd_sim

Description Usage Arguments Value

View source: R/pbd_sim_checked.R

Description

Checked and safer version of PBD::pbd_sim

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
pbd_sim_checked(
  erg,
  eri,
  scr,
  sirg,
  siri,
  stem_age = NULL,
  crown_age = NULL,
  max_n_taxa = Inf,
  add_shortest_and_longest = FALSE
)

Arguments

erg

extinction rate of a good species

eri

extinction rate of an incipient species

scr

speciation completion rate

sirg

speciation initiation rate of a good species

siri

speciation initiation rate of an incipient species

stem_age

stem age. Set either the stem age or the crown age.

crown_age

crown age. Set either the stem age or the crown age.

max_n_taxa

maximum number of taxa. If this value is exceeded, the simulation is aborted and removed.

add_shortest_and_longest

Gives the output of the new samplemethods 'shortest' and 'longest'.

Value

the output of a PBD sim, as can be checked by check_pbd_sim_out


richelbilderbeek/becosys documentation built on Oct. 19, 2020, 9:20 a.m.