All Projects → covidestim → covidestim

covidestim / covidestim

Licence: other
Bayesian nowcasting with adjustment for delayed and incomplete reporting to estimate COVID-19 infections in the United States

Programming Languages

C++
36643 projects - #6 most used programming language
r
7636 projects
Stan
76 projects
TeX
3793 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to covidestim

Bayesplot
bayesplot R package for plotting Bayesian models
Stars: ✭ 276 (+1280%)
Mutual labels:  stan, r-package, mcmc
covidseir
Bayesian SEIR model to estimate the effects of social-distancing on COVID-19
Stars: ✭ 23 (+15%)
Mutual labels:  stan, r-package, covid-19
Shinystan
shinystan R package and ShinyStan GUI
Stars: ✭ 172 (+760%)
Mutual labels:  stan, r-package, mcmc
cmdstanr
CmdStanR: the R interface to CmdStan
Stars: ✭ 82 (+310%)
Mutual labels:  stan, r-package, mcmc
Rstan
RStan, the R interface to Stan
Stars: ✭ 760 (+3700%)
Mutual labels:  stan, r-package, mcmc
Torsten
library of C++ functions that support applications of Stan in Pharmacometrics
Stars: ✭ 38 (+90%)
Mutual labels:  stan, mcmc
Rstanarm
rstanarm R package for Bayesian applied regression modeling
Stars: ✭ 285 (+1325%)
Mutual labels:  stan, r-package
Bda r demos
Bayesian Data Analysis demos for R
Stars: ✭ 409 (+1945%)
Mutual labels:  stan, mcmc
Bda py demos
Bayesian Data Analysis demos for Python
Stars: ✭ 781 (+3805%)
Mutual labels:  stan, mcmc
Posterior
The posterior R package
Stars: ✭ 75 (+275%)
Mutual labels:  r-package, mcmc
Tidybayes
Bayesian analysis + tidy data + geoms (R package)
Stars: ✭ 557 (+2685%)
Mutual labels:  stan, r-package
Brms
brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
Stars: ✭ 825 (+4025%)
Mutual labels:  stan, r-package
Ggmcmc
Graphical tools for analyzing Markov Chain Monte Carlo simulations from Bayesian inference
Stars: ✭ 95 (+375%)
Mutual labels:  stan, mcmc
walker
Bayesian Generalized Linear Models with Time-Varying Coefficients
Stars: ✭ 38 (+90%)
Mutual labels:  stan, mcmc
Projpred
Projection predictive variable selection
Stars: ✭ 76 (+280%)
Mutual labels:  stan, r-package
Loo
loo R package for approximate leave-one-out cross-validation (LOO-CV) and Pareto smoothed importance sampling (PSIS)
Stars: ✭ 106 (+430%)
Mutual labels:  stan, r-package
BAS
BAS R package https://merliseclyde.github.io/BAS/
Stars: ✭ 36 (+80%)
Mutual labels:  r-package, mcmc
Cmdstan.jl
CmdStan.jl v6 provides an alternative, older Julia wrapper to Stan's `cmdstan` executable.
Stars: ✭ 30 (+50%)
Mutual labels:  stan, mcmc
Stan.jl
Stan.jl illustrates the usage of the 'single method' packages, e.g. StanSample, StanOptimize, etc.
Stars: ✭ 163 (+715%)
Mutual labels:  stan, mcmc
geostan
Bayesian spatial analysis
Stars: ✭ 40 (+100%)
Mutual labels:  stan, r-package

covidestim

Real-time estimates of the true size and trajectory of local COVID-19 epidemics are key metrics to guide policy responses. covidestim is a Bayesian nowcasting approach that explicitly accounts for reporting delays and secular changes in case ascertainment to generate real-time estimates of COVID-19 epidemiology on the basis of reported cases and hospitalizations. Using this approach, we can estimate time trends for a number of important outcomes:

  • Infections (including infections that were never diagnosed)
  • Symptomatic cases
  • Deaths
  • Effective reproduction number (Rt)
  • ...and more

The covidestim package contains all you need to reproduce our work, but it's really targeted at users who want to try running our model on their own data. As the package allows for different kinds of input data, custom priors, and two different fitting algorithms, covidestim is appropriate for:

  • Efficient real-time estimation of key timeseries at the U.S. state- and county-level (these results are available on covidestim.org)

  • Retrospective modeling of a specific geographic area for which you have special insight. For example, covidestim can help you model a county where you happen to have line-list case and death data by date of occurrence, as well as clinical data informing your belief about the rates at which patients transition from symptomatic to severe (hospitalizable), and from severe to dead.

  • Exploratory modeling of non-U.S. geographies. covidestim's extensive customizability allows you to leverage beliefs about delay structures, case ascertainment, and more in order to set up a model tailored to your epidemiologic setting.

covidestim provides a well-documented interface for all phases of the modeling process: adding input data, specifying priors, running the model, producing summary timeseries and graphs.

Installation

# Currently, Covidestim is not availble on CRAN
# install.packages("covidestim")

# Install the development version from GitHub. This requires that the
# 'devtools' package be installed.
if (!require("devtools")) {
  install.packages("devtools")
}
devtools::install_github("covidestim/covidestim")

rstan, covidestim's key dependency, has a dependency on Google's V8 JS library. V8 often proves troublesome to install. If you experience problems, see this GitHub issue for solutions. Or, just use our Docker container, linked below.

Usage

library(covidestim)

# Set up a model on 31 weeks of Connecticut data, starting December 2, 2021.
cfg <- covidestim(nweeks = 31, region = 'Connecticut', pop_size = get_pop('Connecticut')) +
  input_cases(example_ct_data('cases')) +
  input_deaths(example_ct_data('deaths')) + 
  input_boost(example_ct_data('boost')) +
  input_hosp(example_ct_data('hospi')) 

result <- run(cfg)
resOptimizer <- runOptimizer(cfg)

# Get a data.frame of all timeseries outcomes, and some overview plots
resultSummary <- summary(result)
resultGraphs  <- viz(result)

Changelog

covidestim has been under active development since March 2020. In that time, we have made large structural changes to the core model, added and removed data sources, tweaked priors, added a new fitting method, and more. We are constantly working to provide an implementation that is consistent with the best available evidence on the epidemiology of COVID-19. To that end, the master branch generally sees a merge every 1-3 months. While we do not currently use a versioning system to catalogue these changes, we maintain a detailed history of major changes here.

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].