simulate_household: Simulate the epidemic with in a household

Description Usage Arguments Value See Also

View source: R/model.R

Description

Simulate the epidemic with in a household

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
simulate_household(
  seed = -1,
  adults,
  childs,
  first.is.adult,
  beta_cc,
  beta_ca,
  beta_ac,
  beta_aa,
  P = NULL,
  T_max = 45,
  ssn = 1000
)

Arguments

seed

seed for the simulation

adults

number of adults in the household

childs

number of children in the household

first.is.adult

is indicator and is TRUE if the index case is adult and FALSE otherwise

beta_cc

proabilty that a child will infect a child

beta_ca

proabilty that an adult will infect a child

beta_ac

proabilty that a child will infect an adult

beta_aa

proabilty that an adult will infect an adult

P

a vector of generation time distribution (default is generated by load_P)

T_max

the length of the epidemic within the family

ssn

the number of households to simuluate

Value

a tibble with the epidemic development over time by day

See Also

load_P


yairgoldy/sl4hm documentation built on Feb. 3, 2021, 5:45 p.m.