create_family_structure_data: Create a random dataset of families

Description Usage Arguments Value See Also

View source: R/create_data.R

Description

Create a random dataset of families

Usage

1
2
3
4
5
6
create_family_structure_data(
  seed = -1,
  n = 1000,
  adult_index_case_prob = 0.8,
  T_max = 21
)

Arguments

seed

seed for the simulation

n

number of families

adult_index_case_prob

probability that the index case is adult

T_max

number of days to run epidemic (scalar or vector of size n)

Value

a the result as a tibble including the number of adults, the number of children, the index case, and the epidemic duration (in days) of each family

See Also

create_simulated_data run_simulation


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