randomContacts: Generate random matrix of contact

View source: R/randomContacts.R

randomContactsR Documentation

Generate random matrix of contact

Description

randomContacts returns a list with random contact between wards.

Usage

randomContacts(pop_size_H, ward_names)

Arguments

pop_size_H

Numerical vector. Contains the number of professional affiliated to each ward in the same order than ward_names argument.

ward_names

String vector. Contains the ward names in the same order than pop_size_H argument.

Value

List of two data.frame. sharedTime: proportion of time spent in each ward (row) for each professional (column) ; contactMat: average time spent in each ward (column) by professionals of each ward (row).

Examples

data("toydata")
list2env(toydata,envir=.GlobalEnv)

randomContacts(pop_size_H, ward_names)


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