Coder Social home page Coder Social logo

idspatialstats's Introduction

IDSpatialStats

Previous users: please read news on the latest release to update you on changes to the tau statistic functions.

This GitHub repository provides source code for the IDSpatialStats R package, which helps epidemiologists assess the scale of spatial and temporal dependence in epidemic case occurrence data. This package can simulate infectious disease spread as a spatial branching process, along with two novel spatial statistics that estimate:

  1. the mean of the spatial transmission kernel, which is a measure of fine-scale spatial dependence between two cases, and
  2. the tau statistic ฯ„, a measure of global clustering based on any/all of pathogen subtype; serotype; case onset time.

This package is maintained by John Giles (GitHub: @gilesjohnr) and Justin Lessler (GitHub: @jlessler) as part of the Johns Hopkins Bloomberg School of Public Health Infectious Disease Dynamics team (GitHub: @HopkinsIDD).

Detailed description of the methods and relevant literature

Transmission distance estimation and tau statistic

The IDSpatialStats R package: Quantifying spatial dependence of infectious disease spread (Giles et al. 2019)

Measuring spatial dependence for infectious disease epidemiology (Lessler et al. 2016)

Transmission distance specific

Estimating infectious disease transmission distances using the overall distribution of cases (Salje et al. 2016)

Tau statistic specific

Developments in statistical inference when assessing spatiotemporal disease clustering with the tau statistic (Pollington et al. 2020 pre-proof)

The spatiotemporal tau statistic: a review (Pollington et al. preprint)

Three tau statistic plots are illustrated below for diagnostic, graphical hypothesis tests and clustering range parameter estimation purposes (image source, CC-BY licence):

Installation

To install the official release of the IDSpatialStats package, open R and type:

install.packages('IDSpatialStats')

or for the development version, first install the devtools package and then IDSpatialStats from source via GitHub:

install.packages('devtools')
devtools::install_github('HopkinsIDD/IDSpatialStats')

Troubleshooting and contributions

For general questions, contact package maintainers Justin Lessler ([email protected]) or John Giles ([email protected]).

To report bugs or problems with documentation, please go to the Issues page associated with this GitHub page and click New issue. Bugs clearly reported using the reprex package are encouraged.

If you wish to contribute to IDSpatialStats, please first get in touch via email. Then if we agree in principle please:

  1. Fork a copy of the current development version on GitHub
  2. Add your functions and edits to your forked copy
  • pay attention to existing naming conventions and outputs
  • add examples
  • line comments are welcome for non-intuitive commands.
  • commit to your own forked version:
    • often
    • describe what was done and why, but not how
    • use the imperative
    • < 72 characters
      e.g. "Replace percentile CI with BCa CI, as tau bootstrap distrib. non-symm"
  1. Any modified functions must return identical output as the current functions. Check that modified functions return the same output using package testthat and consider writing new test cases if appropriate. For new functions, write test cases should test that functions return expected values given expected inputs, and that they behave as expected in boundary conditions.
  2. Add conditional stops to functions so that they fail gracefully with unexpected inputs.
  3. Submit a pull request when you are ready to share. Thank you!

idspatialstats's People

Contributors

t-pollington avatar gilesjohnr avatar jlessler avatar mariabnd avatar

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.