Learn R Programming

Hybrid Models

Version: 0.3.7


hybridModels is an R package to simulate customizable stochastic hybrid models for transmission of diseases in dynamic networks.

Installation

It is possible to use one of the options below to install the package:

From CRAN

install.packages("hybridModels")
  • Making use of the devtools package (Hadley Wickham and Winston Chang (2015). devtools: Tools to Make Developing R Packages Easier. R package version 1.13.5 or higher, http://CRAN.R-project.org/package=devtools).

Through github and devtools

library(devtools)
install_github("fernandosm/hybridModels")

Features

The current version runs:

  • Customizable hybrid model in dynamic networks in which migration is the link type between nodes. Using this link type allows user to create rules that compute the number of individuals that emigrate and the probability weight of a individual of a certain state to emigrate.

  • Customizable hybrid model in dynamic networks in which influence is the link type between nodes.

  • Find nodes of contact chains (outgoing and ingoing).

  • Calculate contact chains' size (outgoing and ingoing).

  • SI hybrid model without explicit demographics (migration link). It is assumed that the total number of individuals is constant and animals migrate between premises.

  • SI hybrid model without explicit demographics (influence link). It is assumed that the total number of individuals is constant and animals do not migrate between premises, they influence other premises.

More Information and Examples

hybridModels: An R Package for the Stochastic Simulation of Disease Spreading in Dynamic Networks

Jason Ardila Galvis (email: jason.ardila@usp.br) studies disease spread among animals and, as an example, he created an animation (click on the image below) based on results generated by hybridModels package. In this example he made use of fictitious data.

Copy Link

Version

Install

install.packages('hybridModels')

Monthly Downloads

201

Version

0.3.7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

June 26th, 2020

Functions in hybridModels (0.3.7)

findContactChain

Finding elements in contact chains of a dynamic network.
hybridModel

Hybrid model simulation.
hybridModels

hybridModels: an R package for stochastic simulation of disease spreading in dynamic networks.
summary

summary for hybrid models
plot

Summary plots for hybrid Models
simHM

It runs the chosen hybrid model.
buildModelClass

It builds an object of a pre-specified class.
nodesCensus

Information about animal premises (from 2012 to 2013).
networkSample

Daily record of animal's movement (from 2012 to 2013).