Learn R Programming

⚠️There's a newer version (2.5.0) of this package.Take me there.

EpiModel (version 2.2.1)

Mathematical Modeling of Infectious Disease Dynamics

Description

Tools for simulating mathematical models of infectious disease dynamics. Epidemic model classes include deterministic compartmental models, stochastic individual-contact models, and stochastic network models. Network models use the robust statistical methods of exponential-family random graph models (ERGMs) from the Statnet suite of software packages in R. Standard templates for epidemic modeling include SI, SIR, and SIS disease types. EpiModel features an API for extending these templates to address novel scientific research aims. Full methods for EpiModel are detailed in Jenness et al. (2018, ).

Copy Link

Version

Install

install.packages('EpiModel')

Monthly Downloads

933

Version

2.2.1

License

GPL-3

Maintainer

Samuel Jenness

Last Published

February 2nd, 2022

Functions in EpiModel (2.2.1)

arrivals.icm.bip

Arrivals: bipartite icm Module
add_vertices

Fast Version of network::add.vertices for Edgelist-formated Network
InitErgmTerm.absdiffnodemix

Definition for absdiffnodemix ERGM Term
apportion_lr

Apportion Least-Remainder Method
InitErgmTerm.absdiffby

Definition for absdiffby ERGM Term
EpiModel-package

Mathematical Modeling of Infectious Disease Dynamics
as.data.frame.dcm

Extract Model Data for Deterministic Compartmental Models
arrivals.icm

Arrivals: icm Module
arrivals.2g.net

Arrivals: netsim Module
arrivals.net

Arrivals: netsim Module
check_attr_lengths

Check that all attributes in the master object are of equal length
departures.icm

Departure: icm Module
check_degdist_bal

Check Degree Distribution for Balance in Target Statistics
departures.icm.bip

Departure: bipartite icm Module
common_updater

Update either the "param" or "control" list
edgelist_censor

Table of Edge Censoring
color_tea

Creates a TEA Variable for Infection Status for ndtv Animations
copy_datattr_to_nwattr

Copies Vertex Attributes from the dat List to the Network Object
copy_nwattr_to_datattr

Copies Vertex Attributes From Network to dat List
dissolution_coefs

Dissolution Coefficients for Stochastic Network Models
comp_plot

Plot Compartment Diagram for Epidemic Models
auto_update_attr

Updates Vertex Attributes for Incoming Vertices
generate_random_params

Generate Values for Random Parameters
delete_vertices

Fast Version of network::delete.vertices for Edgelist-formated Network
as.network.transmat

Converts transmat infection tree into a network object
control.dcm

Control Settings for Deterministic Compartmental Models
geom_bands

ggplot2 geom for Quantile Bands
departures.2g.net

Departures: netsim Module
get_network_term_attr

Outputs ERGM Formula Attributes into a Character Vector
brewer_ramp

RColorBrewer Color Ramp for EpiModel Plots
departures.net

Departures: netsim Module
get_nwparam

Extract Network Model Parameters
increment_timestep

Increment the Current Timestep
get_cumulative_edgelists_df

Get the Cumulative Edgelists of a Model
get_current_timestep

Returns the Current Timestep
is.transmat

Extract Transmissions Matrix from Network Epidemic Model
infection.2g.net

Primary Infection Module for netsim
get_args

Get Arguments from EpiModel Parameterization Functions
get_attr_history

Extract the Attributes History from Network Simulations
as.phylo.transmat

Convert transmat infection tree into a phylo object
discord_edgelist

Discordant Edgelist
init.dcm

Initial Conditions for Deterministic Compartmental Models
infection.net

Primary Infection Module for netsim
get_vertex_attribute

Get Vertex Attribute on Network Object
get_attr_prop

Proportional Table of Vertex Attributes
get_degree

Get Individual Degree from Network or Edgelist
create_dat_object

Create a Minimal Master List Object of Network Model
modules.net

Modules for Stochastic Network Models
modules.icm

Modules for Stochastic Individual Contact Models
mutate_epi

Add New Epidemiology Variables
infection.icm

Primary Infection Module for icm
crosscheck.dcm

Cross Checking of Inputs for Deterministic Compartmental Models
crosscheck.icm

Cross Checking of Inputs for Stochastic Individual Contact Models
net-accessor

Functions to Access and Edit the Master List Object in Network Models
get_cumulative_edgelist

Get a Cumulative Edgelist From a Specified Network
icm

Stochastic Individual Contact Models
as.data.frame.icm

Extract Model Data for Stochastic Models
get_partners

Return the Historical Partners (Contacts) of a Set of Index Patients
get_edgelist

Get an Edgelist From the Specified Network
get_sims

Extract Network Simulations
idgroup

Mode Numbers for Two-Group Network
infection.icm.bip

Primary Infection Module for icm
as.data.frame.netdx

Extract Timed Edgelists netdx Objects
crosscheck.net

Cross Checking of Inputs for Stochastic Network Models
init.icm

Initial Conditions for Stochastic Individual Contact Models
deleteAttr

Delete Elements from Attribute List
control.icm

Control Settings for Stochastic Individual Contact Models
merge.icm

Merge Data across Stochastic Individual Contact Model Simulations
record_raw_object

Record an Arbitrary Object During a Simulation
param.net

Epidemic Parameters for Stochastic Network Models
param.icm

Epidemic Parameters for Stochastic Individual Contact Models
init.net

Initial Conditions for Stochastic Network Models
control.net

Control Settings for Stochastic Network Models
recovery.2g.net

Recovery: netsim Module
dcm

Deterministic Compartmental Models
delete_attr

Delete Elements from Attribute List
is_active_posit_ids

Are These Nodes Active (Positional IDs)
epiweb

EpiModel Web
initialize.net

Initialization: netsim Module
format_param

Format one parameter for printing with the `print.param.xxx` functions
netsim

Stochastic Network Models
update_dissolution

Adjust Dissolution Component of Network Model Fit
netsim_cond_msg

Message to find in which module a `condition` occured
netsim_loop

Internal function running the network simulation loop
update_list

Update list x using the elements of list new.x.
param_random

Create a Value Sampler for Random Parameters
networkLite

networkLite Constructor Utilities
merge.netsim

Merge Model Simulations Across netsim Objects
netdx

Dynamic Network Model Diagnostics
plot.transmat

Plot transmat infection tree in one of several styles
netest

Dynamic Network Model Estimation
plot.netsim

Plot Data from a Stochastic Network Epidemic Model
init_tergmLite

Initializes EpiModel netsim Object for tergmLite Simulation
plot.dcm

Plot Data from a Deterministic Compartmental Epidemic Model
recovery.icm

Recovery: icm Module
prevalence.icm

Get Epidemic Output from icm Model
recovery.net

Recovery: netsim Module
initialize.icm

Initialization: icm Module
recovery.icm.bip

Recovery: icm Module
nwupdate.net

Dynamic Network Updates
param.dcm

Epidemic Parameters for Deterministic Compartmental Models
resim_nets

Resimulate Dynamic Network at Time 2+
networkLitemethods

networkLite Methods
saveout.icm

Save icm Data to Output List Format
dcm.mods

Deterministic Compartmental Model Functions
mcat

Write Out Test Progress to Console
prevalence.icm.bip

Get Epidemic Output from icm Model
make_formation_table

Calculate the Formation Statistics of a Network
saveout.dcm

Save dcm Data to Output List Format
prevalence.net

Get Epidemic Output from netsim Model
edgelist_meanage

Mean Age of Partnerships over Time
summary.netest

Summary for Network Model Fit
edges_correct

Adjustment for the Edges Coefficient with Changing Network Size
get_network

Extract networkDynamic and network Objects from Network Simulations
get_formula_term_attr

Outputs ERGM Formula Attributes into a Character Vector
updater.net

Module to modify the controls or parameters during the simulation
network_initialize

Initialize Network Object
plot.icm

Plot Data from a Stochastic Individual Contact Epidemic Model
verbose.dcm

Progress Print Module for Deterministic Compartmental Models
get_nwstats

Extract Network Statistics from netsim or netdx Object
summary.netsim

Summary Model Statistics
unique_id-tools

Convert Unique identifiers from/to Positional identifiers
update_cumulative_edgelist

Update a Cumulative Edgelist of the Specified Network
update_unique_ids

Create the unique_ids for the new nodes
update_params

Update Model Parameters for Stochastic Network Models
init_status.icm

Disease Status Initialization Module for icm
get_param_set

Extract the Parameter Set from Network Simulations
init_status.net

Disease Status Initialization Module for netsim
is_active_unique_ids

Are These Nodes Active (Unique IDs)
saveout.net

Save netsim Data to Output List Format
make_dissolution_stats

Calculate the Dissolution Statistics of a Network
print_nwstats_table

Print Helper For Network Stats Tables
record_attr_history

Record Attributes History
plot.netdx

Plot Dynamic Network Model Diagnostics
process_out.net

Save a list of netsim Data to Output List Format
summary.dcm

Summary Model Statistics
ssample

Stable Sampling Function
sim_nets_t1

Simulate Initial Network at Time 1 for Model Initialization
set_transmat

Save Transmission Matrix
summary.icm

Summary Model Statistics
set_current_timestep

Sets the Current Timestep
test_icm

Test the Model Output from a Stochastic Individual Contact Model
verbose.icm

Progress Print Module for Stochastic Individual Contact Models
test_net

Test the Model Output from a Network Model
verbose.net

Progress Print Module for Stochastic Network Models
set_vertex_attribute

Set Vertex Attribute on Network Object
truncate_sim

Truncate Simulation Time Series
trackers.net

Trackers: netsim Module