run_simulation: Simulate nsim simulations of an epidemic on a dataset of...

Description Usage Arguments Value See Also

View source: R/simulation.R

Description

Simulate nsim simulations of an epidemic on a dataset of households

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
run_simulation(
  nsim = 1,
  family_structure_data,
  beta_aa,
  gamma_val,
  delta_val,
  P = NULL,
  T_max = 45,
  future_plan = "sequential",
  dictionary_path = NULL
)

Arguments

nsim

number of simulation to run

family_structure_data

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

beta_aa

proabilty that an adult will infect an adult (must be appear in the dictionary)

gamma_val

relative susceptibility of children to adults (must be appear in the dictionary)

delta_val

relative infectivity of children to adults (must be appear in the dictionary)

P

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

T_max

the length of the epidemic within the family

future_plan

the plan for using the future package (default is sequential)

dictionary_path

path to the folder that contain the dictionaries

Value

a tibble with the maximum likelihood for each simulated dataset

See Also

load_P create_family_structure_data


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