Simulates stochastic hybrid models for transmission of infectious
diseases in dynamic networks. It is a metapopulation model in which each
node in the network is a sub-population and disease spreads within nodes
and among them, combining two approaches: stochastic simulation algorithm
(
Version: 0.3.5
hybridModels
is a R package to simulate customizable stochastic hybrid models for transmission of diseases in dynamic networks.
It is possible to use one of the options below to install the package:
install.packages("hybridModels")
Through github and devtools
library(devtools)
install_github("fernandosm/hybridModels")
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.
Jason Ardila Galvis (email: [email protected]) studies disease spread among animals and, as an exemple, he created an animation (click on the image below) based on results generated by hybridModels package. In this example he made use of fictitius data.
ssa methods were fixed in the following files: custom_inf, custom_migr, sim_custom_migr, sim_custom_migr_prob, sim_custom_migr_rule, sim_custom_migr_rule_prob, hybrid_Model
Adding stop messages to arguments in hybriModel function
Documentation fix
emigrRule: bug fix
emigrRule: caveat fix, nodes get in line randomly to recieve imigrants
adding argument emigrRule
adding argument probWeight
adding few short comments
adding date option in summary method
updating summary documentation
updating description field
findContactChain: it retrieves chains without selected.node.
networkSample: removing unnecessary data.
New class and methods to handle customizable models of influence link type.
new example with a influence link type.
summary - bug fix.
roxygen2 warning fix.
Documentations mistakes.
summary method.
new column names of example data set (new documentation).
adjusting all examples for the new column names.
faster examples (from SIR to SIS and smaller pops).
back to doParallel package.
foreach package from Depends to Imports.
layout changes data set help.
removing unnecessary function.
Changing examples: examples are now using custom equations.
plot.HD function: it is possible to customize through ggplot2.
hybridModel function: now it includes new class (customMigr).
buildModelClass function: now it includes it includes new class (generic function).
buildModelClass.customMigr: method to create an object of the class customMigr.
simHM.customMigr function: method to run custom models (migration link type).
plot.HD function: new plot opstions.
networkSample data: new data set
nodesCensus data: new data set
hybridModel function: now it includes link.type parameter.
buildModelClass function: now it includes link.type parameter (generic function).
buildModelClass.siWoDemogrMigr: replaces buildModelClass.siWoDemogrMigr method.
buildModelClass.siWoDemogrInfl: method to create an object of the class siWoDemogrInfl.
simHB function: generic that calls the method based on model's class.
simHB.siWoDemogrMigr function: method to run the 'SI without demographics' model of migration link type.
simHB.siWoDemogrInfl function: method to run the 'SI without demographics' model of influence link type.
plot.HD function: replaces plot.siWoDemogrmethod method.
networkSample data: replaces network.sample
nodesCensus data: replaces nodes.Info
hybridModel function: main function to simulate the spread of diseases using an model.
buildModelClass function: generic that calls the method based on model's class.
buildModelClass.siWoDemogr: method to create an object of the class siWoDemogr.
simHB function: generic that calls the method based on model's class.
simHB.siWoDemogr function: method to run the 'SI without demographics' model.
plot.siWoDemogr function: method to plot the 'SI without demographics' results.
network.sample data: a sample of a dynamic network of traded animals between farms.
network.Info data: farms' censitary information.