setup.model.equations: Setup Model Equations

View source: R/misc.R

setup.model.equationsR Documentation

Setup Model Equations

Description

Function to setup the components of the mathematical model. See build.demographic.process for more details

Usage

setup.model.equations(demes, nondemes = NULL, rcpp = FALSE)

Arguments

demes

a character vector naming the demes of the mathematical model.

nondemes

a character vector naming the non demes of the mathematical model.

rcpp

if TRUE, the expressions are interpreted as C code using the Rcpp package.

Value

this function returns a list containing the empty components (represented by zeros) to build the mathematical model. These components are the birth, death, migrations, total number of demes and non-demes of the model.

  • Birth is a vector or matrix describing the model birth rates;

  • Death is a vector describing the model death rates;

  • Migration is a vector or matrix describing the model migration rates.

See Also

build.demographic.process

Examples

demes <- c("gpm", "gpf", "msm", "src")
eqns <- setup.model.equations(demes)

thednainus/pangeaZA documentation built on May 9, 2022, 6:21 p.m.