saveout.net: Save netsim Data to Output List Format

View source: R/saveout.R

saveout.netR Documentation

Save netsim Data to Output List Format

Description

This function transfers the data from the main netsim_dat object to the output out object at the end of each simulation in netsim.

Usage

saveout.net(dat, s, out = NULL)

Arguments

dat

Main netsim_dat object containing a networkDynamic object and other initialization information passed from netsim.

s

Current simulation number.

out

Out list passed back in for updating at simulations 2+.

Value

A list with the following elements:

  • param: the epidemic parameters passed into the model through param.net, with additional parameters added as necessary.

  • control: the control settings passed into the model through control.net, with additional controls added as necessary.

  • epi: a list of data frames, one for each epidemiological output from the model.

  • stats: a list containing two sublists, nwstats for any network statistics saved in the simulation, and transmat for the transmission matrix saved in the simulation.

  • network: a list of networkDynamic objects, one for each model simulation.


EpiModel documentation built on Oct. 12, 2024, 1:06 a.m.