Learn R Programming

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

SimInf (version 6.2.0)

A Framework for Data-Driven Stochastic Disease Spread Simulations

Description

Provides an efficient and very flexible framework to conduct data-driven epidemiological modeling in realistic large scale disease spread simulations. The framework integrates infection dynamics in subpopulations as continuous-time Markov chains using the Gillespie stochastic simulation algorithm and incorporates available data such as births, deaths and movements as scheduled events at predefined time-points. Using C code for the numerical solvers and 'OpenMP' (if available) to divide work over multiple processors ensures high performance when simulating a sample outcome. One of our design goals was to make the package extendable and enable usage of the numerical solvers from other R extension packages in order to facilitate complex epidemiological research. The package contains template models and can be extended with user-defined models.

Copy Link

Version

Install

install.packages('SimInf')

Monthly Downloads

490

Version

6.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Widgren

Last Published

November 20th, 2018

Functions in SimInf (6.2.0)

SISe

Create a SISe model
SEIR

Create an SEIR model
V<-

Set a template for where to write the V result matrix
SISe3_sp

Create a SISe3_sp model
SISe3_sp-class

Definition of the ‘SISe3_sp’ model
SEIR-class

Definition of the ‘SEIR’ model
boxplot,SimInf_model-method

Box plot of number of individuals in each compartment
plot,SimInf_model-method

Display the outcome from a simulated trajectory
mparse

Model parser to define new models to run in SimInf
C_code

Extract the C code from a SimInf_model object
run

Run the SimInf stochastic simulation algorithm
prevalence

Calculate prevalence from a model object with trajectory data
nodes

Example data with spatial distribution of nodes
run_outer

Run SimInf_model on scaled parameters
trajectory

Extract data from a simulated trajectory
Nn

Extract number of nodes in a model
SimInf

A Framework for Data-Driven Stochastic Disease Spread Simulations
SimInf_events-class

Class "SimInf_events"
SISe3-class

Definition of the ‘SISe3’ model
summary,SimInf_events-method

Detailed summary of a SimInf_events object
u0_SEIR

Example data to initialize the ‘SEIR’ model
gdata<-

Set a global data parameter for a SimInf_model object
summary,SimInf_model-method

Detailed summary of a SimInf_model object
gdata

Extract global data from a SimInf_model object
SISe3

Create a ‘SISe3’ model
SimInf_events

Create a '>SimInf_events object
SimInf_model-class

Class "SimInf_model"
SIR-class

Definition of the SIR model
outdegree

Determine out-degree for each node in a model
events_SIR

Example data to initialize events for the ‘SIR’ model
events_SEIR

Example data to initialize events for the ‘SEIR’ model
u0_SIR

Example data to initialize the ‘SIR’ model
package_skeleton

Create a package skeleton from a SimInf_model
u0_SISe

Example data to initialize the ‘SISe’ model
SIR

Create an SIR model
SimInf_model

Create a SimInf_model
indegree

Determine in-degree for each node in a model
events_SISe

Example data to initialize events for the ‘SISe’ model
ldata

Extract local data from a node
U<-

Set a template for where to write the U result matrix
events_SISe3

Example data to initialize events for the ‘SISe3’ model
shift_matrix<-

Set the shift matrix for a SimInf_model object
show,SimInf_events-method

Brief summary of SimInf_events
show,SimInf_model-method

Brief summary of SimInf_model
shift_matrix

Extract the shift matrix from a SimInf_model object
pairs,SimInf_model-method

Scatterplot of number of individuals in each compartment
u0_SISe3

Example data to initialize the ‘SISe3’ model
plot,SimInf_events-method

Display the distribution of scheduled events over time
select_matrix<-

Set the select matrix for a SimInf_model object
select_matrix

Extract the select matrix from a SimInf_model object
SISe_sp-class

Definition of the SISe_sp model
SISe_sp

Create a SISe_sp model
SISe-class

Definition of the SISe model
distance_matrix

Create a distance matrix between nodes for spatial models
events

Extract the events from a SimInf_model object