incidence2prevalence: Convert an LNA/ODE incidence path to a prevalence path.

View source: R/incidence2prevalence.R

incidence2prevalenceR Documentation

Convert an LNA/ODE incidence path to a prevalence path.

Description

Convert an LNA/ODE incidence path to a prevalence path.

Usage

incidence2prevalence(
  path,
  flow_matrix,
  init_state,
  forcings = NULL,
  forcing_matrix = NULL
)

Arguments

path

matrix containing the incidence path the first column of which are incidence times

flow_matrix

flow matrix

init_state

vector of initial compartment counts

forcings

list of forcing lists

forcing_matrix

matrix containing the forcings the first column of which are times of forcings

Value

matrix containing the prevalence path


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.