pop_model_matrix_elements: Population Model Matrix Elements

View source: R/pop_model_matrix_elements.R

pop_model_matrix_elementsR Documentation

Population Model Matrix Elements

Description

Build population model matrix elements.

Usage

pop_model_matrix_elements(pop_mod_setup = NA)

Arguments

pop_mod_setup

List. Object returned from population_model_setup().

Details

This is an intermediate setup function to run the population, but some of its outputs are useful on their own, especially for eigen analyses. pop_model_matrix_elements() is run after pop_model_setup() but must be run before Projection_DD(). Key outputs to explore include a density independent projection matrix, life histories and a symbolic representation of the matrix math for density dependent and density independent components.

Value

a list object of symbolic objects.

Examples

## Not run: 

# Load the JoeModelCE package.
library(JoeModelCE)

filename_lc <- system.file("extdata", "life_cycles.csv", package = "JoeModelCE")
life_cycles <- read.csv(filename_lc)

# Setup objects for population model
pop_mod_setup <- pop_model_setup(life_cycles = life_cycles)

# Build matrix elements for population model
pop_mod_mat <- pop_model_matrix_elements(pop_mod_setup = pop_mod_setup)
names(pop_mod_mat)

# A density independent projection matrix
pop_mod_mat$projection_matrix




## End(Not run)


essatech/JoeModelCE documentation built on Nov. 21, 2023, 1:49 a.m.