metaSIR_NC: Generate a non-centered discrete-time epidemic model

View source: R/metaSIR_NC.R

metaSIR_NCR Documentation

Generate a non-centered discrete-time epidemic model

Description

Generates a discrete-time epidemic model which constructs epidemics using a stream of random variables which are independent to the epidemic parameters and state.

Usage

metaSIR_NC(N_M, startTime, endTime, PRINT = F)

Arguments

N_M

Size of each meta-population.

endTime

The time which the epidemic should be simulated for.

Value

Returns three functions. A sim function to simulate from the generated model, given a set of parameters. A dailyProg function, whose behaviour is identical to sim but simulates for one time unit only. Finally, a llh function to calculate he log-density for an epidemic, given a set of parameters.


JMacDonaldPhD/REpi documentation built on Aug. 2, 2022, 2:09 p.m.