build_network: Creates a synthetic hospital ward network

View source: R/build_network.R

build_networkR Documentation

Creates a synthetic hospital ward network

Description

This function creates a synthetic hospital ward network with additional information on the population size, visitors etc. You can use this script to generate different input data to be used as examples of "network structures".

Usage

build_network(
  n_buildings = 5,
  n_wards = c(3, 4, 5, 8, 9),
  total_patients = 500,
  total_HCW = 900,
  minLS = 14,
  maxLS = 28,
  within_clust_lev = 0.8,
  between_clust_lev = 0.1,
  clust_ratio_inout = 0.8,
  silent = F
)

Arguments

n_buildings

integer. number of buildings (="clusters")

n_wards

numerical vector. Vector of length (n_buildings) with number of wards for each building

total_patients

integer. Total number of patients in the hospital

total_HCW

integer. Total number of HCW in the hospital

minLS

integer. Minimal number of days for random length of stay

maxLS

integer. Maximal number of days for random length of stay

within_clust_lev

numeric. Probability of creating links between wards of the same building

between_clust_lev

numeric. Probability of creating links between wards of different building

clust_ratio_inout

numeric. Ratio of intra-building clustering (relative to inter-building clustering)

silent

logical. Print plot if TRUE

Value

A list of 9 elements: 1. ward_names, 2. pop_size_P, 3. pop_size_H, nVisits, 5. LS (length of stay), 6. Hplanning, 7. matContact, 8. IMMstate, 9. EPIstate


MESuRS-Lab/mwss documentation built on Sept. 12, 2023, 12:08 a.m.