View source: R/miscellaneous.R
setup.model.equations | R Documentation |
Function to setup the components of the mathematical model. See build.demographic.process
for more details
setup.model.equations(demes, nondemes = NULL, rcpp = FALSE)
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. |
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.
build.demographic.process
demes <- c("gpm", "gpf", "msm", "src")
eqns <- setup.model.equations(demes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.