Coder Social home page Coder Social logo

idspatialstats's Introduction

IDSpatialStats

This GitHub repository provides source code for the IDSpatialStats R package, which is designed to help epidemiologists assess the scale of spatial and temporal dependence in epidemic case occurrence data.

The current implementation of the package includes a function which simulates 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 pathogen subtype.

Detailed description of the methods can be found here:

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)

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

Installation

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

install.packages('IDSpatialStats')

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

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

Troubleshooting

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.

If you wish to contribute to IDSpatialStats, please get in touch via email and then fork the latest version of the package. After committing your code to your own forked version, submit a pull request when you are ready to share.

idspatialstats's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

idspatialstats's Issues

Error in quantile.default(newX[, i], ...) : missing values and NaN's not allowed if 'na.rm' is FALSE

Hello John,

Thanks very much to the team for updating the package, and the helpful R journal article. I have been successfully running the package until recently when I encountered this error, after about an hour of runtime (using some data on cholera cases over a 1-year period).

I am unable to trace its origin, so far, but I think it's related to the get.tau.ci function and adding add na.rm = TRUE in the quantile() call for constructing the CIs. Indeed, I'm not sure if it's an issue with the package. Thank you for any insight you may be able to provide.

Error:

Error in quantile.default(newX[, i], ...) : 
  missing values and NaN's not allowed if 'na.rm' is FALSE
Called from: quantile.default(newX[, i], ...)

From traceback:

eval(substitute(browser(skipCalls = pos)
get_tau.ci
get_tau_and_cis
run_main_analysis

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.