agents_sims: agents_sims Example output from SIR simulations

Description Usage Format Examples

Description

This simulated data is an example of the output from the function simulate_SIR_agents() when output_format = "array". It is a 50 x 3 x 188 array where entry (i,j,k) loks at the ith simulation, the jth statistic, and the kth agent. Each column is asssociated with 1 agent and is a "sufficient" statistic for each agent's infection. Each agent's infection is uniquely identified by an initial state, max time before infection (or time T-1), and max time before recovery (or time T-1). Note time T-1 is the final recorded time in the SIR model (in this case T = 50).

Usage

1

Format

An array with dimension 50 x 3 x 188 data frame with 188 rows and 3 columns. Below are the descriptions of each dimension

sim

Simulation number is the first dimension. They are named between 1 and 50

agent_stat

This is the sufficient statistic for each agent as described above. The names of the statistics are init_state, max_time_S, and max_time_I

agent_id

the ID of the agent

Examples

1
2
## show first simulation of first 10 agents
agents_sims[1, , 1:10]

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