sim_events: Events

Description Usage Arguments Value Author(s)

View source: R/input_sim_events.R

Description

sim module

Usage

1
sim_events(data, pars, l_2, clade = 1)

Arguments

data

contains all the information about the simulated process

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;

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.

clade

the id of the clade

Value

data for the clade

Author(s)

Giovanni Laudanno


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