state_change_inds: Determine which agents changed states

Description Usage Arguments Value

View source: R/sir-simulations.R

Description

Determine which agents changed states

Usage

1
state_change_inds(new_states, current_states, type = "inf")

Arguments

new_states

vector of size n_agents of 0/1/2

current_states

vector of size n_agents of 0/1/2

type

either "inf" for new infectious or "rec" for new recovered

Value

indices of which agents who were in state type are now in the next state


skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.