Description Usage Arguments Value See Also Examples
View source: R/miscellaneous.R
Function to setup the components of the mathematical model. See build.demographic.process
for more details
1 | 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.
1 2 | 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.