sim_tsir_simple: Simple SIR simulation

Description Usage Arguments Value Examples

Description

Simple SIR simulation

Usage

1
sim_tsir_simple(pop, r.init, z.init, beta, under.obs, ntimes = 52)

Arguments

pop

integer, population

r.init

initial value for R state

z.init

initial value for Z (infected) state

beta

transmission parameter in model

under.obs

probability of an individual in Z being observed

ntimes

number of times to simulate

Value

A list with the following items

Examples

1
2
3
  sample.z = sim_tsir_simple(3.5e6, 0, 10, 1.5, 0.2)
  plot(sample.z$obs)
  sum(sample.z$obs)/sample.z$pop

reichlab/TSIRsim documentation built on May 27, 2019, 4:53 a.m.