sim: Simulate an sls process

Description Usage Arguments Value Author(s)

View source: R/sim.R

Description

Simulate an sls process

Usage

1
sim(pars, cond = 1, l_2 = sim_get_standard_l_2())

Arguments

pars

parameters of the likelihood functions:

  • pars[1] is lambda_m, i.e. speciation rate of the main clade;

  • pars[2] is mu_m, i.e. extinction rate of the main clade;

  • pars[3] is lambda_s, i.e. speciation rate of the sub clade;

  • pars[4] is mu_s, i.e. extinction rate of the sub clade;

cond

type of conditioning:

  • cond = 0 no conditiong;

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

  • cond = 2 not available;

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

  • cond = 4 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 sls_sim.get_standard_l_2() for more info.

Value

l_1 table and brts

Author(s)

Giovanni Laudanno


richelbilderbeek/splendid documentation built on May 20, 2019, 9:42 a.m.