get_contacts: Simulate contacts

Description Usage Arguments Value

View source: R/Network_Mvmt_Functions.R

Description

Given infectious agent's location, age and their number of contacts, determine who is contacted in that location

Usage

1
get_contacts(location, n_contacts, age, age_contacts_probs, agents_dt)

Arguments

location

location of agent

n_contacts

number of contacts drawn from NB distribution based on sociality metric and current time step's contact multiplier

age

age of person

age_contacts_probs

square matrix with dimensions equivalent to number of age classes encoding age-dependent contact probabilities

agents_dt

data table of all agents

Value

agents in location who have infectious contact


cmhoove14/LEMMAABMv4 documentation built on Nov. 1, 2021, 10:23 p.m.