create_simulated_data: Simulate the epidemic with in a household

Description Usage Arguments Value See Also

View source: R/create_data.R

Description

Simulate the epidemic with in a household

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
create_simulated_data(
  seed = -1,
  family_structure_data,
  beta_cc,
  beta_ca,
  beta_ac,
  beta_aa,
  P = NULL,
  T_max = 45,
  ssn = 1
)

Arguments

seed

seed for the simulation

family_structure_data

dataset of families including the number of adults, number of children, and the index case (see create_family_structure_data)

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 simulate

Value

a tibble with the epidemic development over time by day

See Also

create_family_structure_data load_P


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