condprob_parmsvec: Creates vector of parameters for the conditional probability

Description Usage Arguments Value Author(s)

View source: R/mbd_condprob.R

Description

Creates vector of parameters for the conditional probability

Usage

1
condprob_parmsvec(pars, eq, lx, absorb, fortran = TRUE)

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;

eq

the equation approach you want to use. It can be "q_eq" for the Q-equation of "p_eq" for the P-equation.

lx

it is the number of ODEs considered for the computation.

absorb

set absorbing states when maximum number of allowed species is reached

fortran

Set it to TRUE if you want to use FORTRAN routine.

Value

a vector composed of (in order): lambda, mu, nu, components of the nu-q matrix, components of the matrix of columns (m1_mat), components of the matrix of rows (m2_mat), components of the empty framed matrix (empty_mat).

Author(s)

Giovanni Laudanno


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