sls_sim: Simulate an sls process

Description Usage Arguments Value Author(s)

View source: R/sls_sim.R

Description

Simulate an sls process

Usage

1
2
3
4
5
6
7
8
sls_sim(
  lambdas,
  mus,
  ks = c(Inf, Inf),
  cond = 3,
  l_2 = sls::sim_get_standard_l_2(),
  l_matrix_size = 10000
)

Arguments

lambdas

speciation rates, for all the clades

mus

extinction rate, for all the clades

ks

carrying capacities, for all the clades

cond

type of conditioning:

  • cond = 0 no conditiong;

  • cond = 1 conditions on the survival of crown descendents;

  • cond = 2 conditions on the survival of subclade and on the other crown descendents in the main clade;

  • cond = 3 conditions on the survival of the subclade and both crown descendents in the main clade;

l_2

the matrix containing the information about how the subclades are nested into the main clade. See sim_get_standard_l_2 for more info.

l_matrix_size

the initial length of the l matrix. It will be increased if necessary

Value

l_1 table and brts

Author(s)

Giovanni Laudanno


Giappo/sls documentation built on Feb. 1, 2021, 9:55 a.m.