sim_initialize_data_new_clade: Initialize data for a new clade

Description Usage Arguments Value Author(s)

View source: R/sls_sim_utils.R

Description

sls_sim module

Usage

1
2
3
4
5
6
7
sim_initialize_data_new_clade(
  data,
  clade,
  pars,
  l_2 = sls::sim_get_standard_l_2(),
  l_matrix_size = 10000
)

Arguments

data

contains all the information about the simulated process

clade

the id of the clade

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 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

data for the clade

Author(s)

Giovanni Laudanno


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