sim_schisto_stoch_mod: Simulate the stochastic version of age-stratified...

Description Usage Arguments Value

View source: R/schisto_dynamic_models.R

Description

Uses the 'schisto_stoch_mod' function to simulate the stochastic model through time

Usage

1
2
3
4
sim_schisto_stoch_mod(nstart, transitions = list(c(S = 1), c(S = -1), c(S
  = -1, E = 1), c(E = -1), c(E = -1, I = 1), c(I = -1), c(Wt = 1), c(Wu =
  1), c(Wt = -1), c(Wu = -1)), sfx = schisto_stoch_mod, params, tf,
  events_df = NA)

Arguments

nstart

starting values of state variables, must be whole numbers

transitions

list of all possible transitions between state variables, defaults to transitions possible in 'schisto_stoch_mod'

sfx

function to feed into adaptive tau, uses 'schisto_stoch_mod' as default

params

named vector of parameter values used in model

tf

numeric of total time to run simulation

events_df

Data frame of events such as MDA with columns "var", "time", "value", and "method"

Value

matrix of state variables and values at time points up until tf


cmhoove14/DDNTD documentation built on Nov. 23, 2019, 7:04 p.m.