is_pmb: Test for pure birth in mbd_loglik

Description Usage Arguments

View source: R/mbd_loglik_utils.R

Description

Test for pure birth in mbd_loglik

Usage

1
is_pmb(pars, tips_interval, cond, missnumspec, n_0)

Arguments

pars

vector of parameters:

  • pars[1] is lambda, the sympatric speciation rate;

  • pars[2] is mu, the extinction rate;

  • pars[3] is nu, the multiple allopatric speciation trigger rate;

  • pars[4] is q, the single-lineage speciation probability;

tips_interval

sets tips boundaries constrain on simulated dataset. It works only if cond == 1, otherwise it must be set to c(0, Inf).

cond

sets the conditioning

  • cond = 0: no conditioning;

  • cond = 1: conditioning on stem or crown age and non-extinction of the phylogeny;

missnumspec

The number of species that are in the clade, but missing in the phylogeny.

n_0

the number of lineages at time equals zero.


Giappo/mbd documentation built on March 3, 2020, 3:36 a.m.