family_dictionary: For each family type and duration calculates the distribution...

Description Usage Arguments Value See Also

View source: R/dictionary.R

Description

For each family type and duration calculates the distribution on the number of positives

Usage

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

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_ac

proabilty that a child will infect an adult

beta_ca

proabilty that an adult will infect a child

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 prabaility to see number of positive adults and number of postive children as a function of the duration and the index case

See Also

load_P create_family_structure_data


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