Description Usage Arguments Value
View source: R/Network_Mvmt_Functions.R
Given infectious agent's location, age and their number of contacts, determine who is contacted in that location
1 | get_contacts(location, n_contacts, age, age_contacts_probs, agents_dt)
|
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 |
agents in location who have infectious contact
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.