Code Monkey home page Code Monkey logo

netjail's Introduction

EpiModel

CRAN Version Build Status Methods


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 easy application programming interface (API) for extending these templates to address novel scientific research aims.

Lead Authors

Samuel M. Jenness Department of Epidemiology Emory University
Steven M. Goodreau Department of Anthropology University of Washington
Martina Morris Departments of Statistics and Sociology University of Washington
Adrien Le Guillou Department of Epidemiology Emory University
Chad Klumb Center for Studies in Demography and Ecology University of Washington

Additional contributors to EpiModel are listed on the contributors page.

Installation

The current release version can be found on CRAN and installed with:

install.packages("EpiModel", dependencies = TRUE)

To install this development version, use the remotes package:

if (!require("remotes")) install.packages("remotes")
remotes::install_github("EpiModel/EpiModel")

Documentation and Support

Website. The main website for EpiModel, with tutorials and other supporting files, is here: http://www.epimodel.org/.

Methods Paper. A good place to start learning about EpiModel is the main methods paper published in the Journal of Statistical Software. It is available at: https://doi.org/10.18637/jss.v084.i08.

Summer Course. Network Modeling for Epidemics is our annual 5-day course at the University of Washington where we teach the statistical theory, software tools, and applied modeling methods using EpiModel. Our course materials are open-source and updated annually around the time of the course.

Getting Help. Users are encouraged to use Github issues on this repository as a place to ask questions (both technical coding questions and conceptual modeling questions), report bugs, and request new features & functionality. Broader modeling questions can be posted on the Discussions board here.

The EpiModel Gallery

The EpiModel Gallery contains templates of extensions to EpiModel, for now focused on network-based mathematical modeling class. We will be continuing to add new examples the gallery, and encourage users to either file requests for new examples or else to contribute them directly.

Citation

If using EpiModel for teaching or research, please include a citation our main methods paper:

Jenness SM, Goodreau SM and Morris M. EpiModel: An R Package for Mathematical Modeling of Infectious Disease over Networks. Journal of Statistical Software. 2018; 84(8): 1-47. doi: 10.18637/jss.v084.i08

Please also send us an email if you have used EpiModel in your work so we can add the citation below.

Funding

The primary support for the development of these software tools and statistical methods has been by two National Institutes of Health (NIH) grants. Our applied research projects using EpiModel have received funding from the NIH and Centers for Disease Control and Prevention (CDC). Our team also receives institutional support through center-level NIH grants. A full list of our funding support can be found here.

EpiModel in the Scientific Literature

EpiModel and its extension packages have been used in the following scientific journal articles. A list of these articles can be accessed in a wiki page or on Zotero. (If you are aware of others, send us an email at [email protected] to be included in this list.)

Copyright

These materials are distributed under the GPL-3 license, with the following copyright and attribution requirements listed in the LICENSE document above.

netjail's People

Contributors

karina-d-wallrafen avatar smjenness avatar

netjail's Issues

Date subsetting for dissolution rate/duration calcs

Currently the edge durations are based on any subsetted dates, but instead should use the full range of dates available for the roster data even if degree/mixing/other cross sectional network stats are within a more limited date range

Network representation of trustees

If there are other considerations for classifying how residents interact, please let us know. For example, Anne, you mentioned the trusted residents who deliver food, etc. If there is some way to identify them on the rosters, that could help.

****Trustees are housed in a particular cell block. For example, they may all be in 1 North 100 zone. I need to check if they are *always * in this zone, or if the designation of which zone is the trustee zone for meal deliverers changes. Can I get back to you about this?

Summary statistics of interest

  • Overall rate of intake into the jail
  • Rate of movement between floors/zones/cells within the jail
  • Movement of rates stratified by floor (as lower floors are higher turnover)
  • Degree distributions (counts of 0, 1, 2, 3....) by network layer type, at different time points
  • Above stats stratified by demographics (age, sex, race)

FCJ Roster Issues

  1. There are four SO Numbers in the dataset that don’t start with ‘P’ and leading zeros (543146, 618354, 711911, 712979). Is there something different about these four residents?
  • 543146 (female) appears once in the data, on 01/12/2021
  • 618354 (female) appears several times in the data, from 01/11/2022 to 02/04/2022
  • 711911 (male) appears once in the data, on 10/27/2021
  • 712979 (male) appears several times in the data, from 10/27/2021 to 02/04/2022
  1. 2 cells are marked as ‘Padded’ (3LD60 on 10/27/2021 and 3LD82 on 01/16/2022). Are these cells geographically separated from the other 3LD[#][#] cells? Are there other padded cells in the data that are not marked as such?
  2. Robertson, Freddie Jerome (SO Number P01007978) has Gender = “M” from 10/27/2021 to 01/31/2022 and Gender = “F” on 02/04/2022. Is this intentional?
  3. Certain locations (listed below) don’t fit into the Floor + Tower + Block + Cell pattern. How do they fit into the architecture of the prison? Where are they located relative to the North/South towers?
  • Central Holding, Central Release, Intake, Medical Holding, Weekender (Intermittent), In Transit Cell. These locations appear throughout the data on various dates, for both male and female residents
  • 3LD[#][#] (e.g., 3LD30). These locations appear throughout the data on various dates, for both male and female residents
  • [Letter][#][#] (e.g., A20). These locations appear throughout the more recent data (from 01/12/22 onwards) for female residents
  • H[#] (e.g., H3). These locations appear throughout the more recent data (from 01/12/22 onwards) for female residents
  • MA[#][#][#] (e.g., MA217). These locations appear throughout the more recent data (from 01/12/22 onwards) for male residents

Primary Outcomes for Paper 1

Tables

Output data as CSV, then copy'n'paste into clean Excel file (template on OneDrive).

  • T1: Basic descriptive stats of jail and residents. You have many of these already in your Rmd. We can tweak what should go in here later.
  • T2: Summary stats of mean degree, age mixing with columns for overall, January, and April months. Averaging over the entire 11 day string for each month.
  • T3: Dissolution/duration stats

Figures

For R outputs, please generate these as high-resolution TIFF files and also PDF files, in OneDrive

  • F1: network schematic
  • F2: PRISMA diagram
  • F3: Box plot (two panels, daily degree for January string of dates and April string of dates. Remove any dates before or after or in-between. Use a clear color for the boxes to differentiate the month. Two panels, cell and block networks. Example: Figure 2 here
  • F4: Heat map/contour plot of age mixing, four panels: proportional (standardized) age mixing matrix. Use interpolation so the contour is smoothed. Two on top row: January cell and block mixing; Two on bottom row: april cell and block mixing. Try to use standard legend (color values). For these, average over the entire 11 day string for each month.

step 10 file has warning

> remove(i, j, races, floors, ages, g, bNWs)
Warning in remove(i, j, races, floors, ages, g, bNWs) :
  object 'bNWs' not found

doesn't appear to be a problem, but code needs update

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.