sim_discrete_mod: Garchitorena discrete time model simulation

Description Usage Arguments Value

View source: R/garchitorena_models.R

Description

Simulates discrete time version of the garchitorena model builds on 'garch_discrete_mod'

Usage

1
2
sim_discrete_mod(I_0, time, model = garch_discrete_mod, parameters,
  events_df = NA)

Arguments

I_0

Initial value of prevalence

time

Total time (days) to simulate

model

Name of the discrete sim function to use, defaults to 'garch_discrete_mod'

parameters

Named vector or list of parameter values

events_df

Data frame of events such as MDA with columns "var", "time", "value" where var is the variable (state variable or parameter) affected, time is the time to implement the event, and value is the value of the change in the value of the variable or parameter as a proportion (e.g. between 0 and 1)

Value

dataframe of state variable values at requested times


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