bayesianfitforecast

BayesianFitForecast: A comprehensive R toolbox for Bayesian parameter estimation and forecasting in ODE models, making advanced Bayesian methods accessible across diverse scientific domains.

https://github.com/gchowell/bayesianfitforecast

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

BayesianFitForecast: A comprehensive R toolbox for Bayesian parameter estimation and forecasting in ODE models, making advanced Bayesian methods accessible across diverse scientific domains.

Basic Info
  • Host: GitHub
  • Owner: gchowell
  • License: cc0-1.0
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 10.3 MB
Statistics
  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Created almost 2 years ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

BayesianFitForecast

BayesianFitForecast is an R toolbox designed to streamline Bayesian parameter estimation and forecasting in ordinary differential equation (ODE) models, particularly for infectious disease applications. This toolbox simplifies the complex process of Bayesian inference by automating the generation of Stan files, enabling users to configure models, define priors, and analyze results efficiently, even with minimal programming expertise.

BayesianFitForecast Tutorial

Video Tutorial

Features

  • Automated Stan File Generation: Automatically generate Stan files based on user-defined ODE models, eliminating the need to write code manually.
  • Bayesian Parameter Estimation: Estimate model parameters using Bayesian inference, incorporating uncertainty and prior knowledge, which is particularly valuable in contexts with limited or noisy data.
  • Model Performance Evaluation: Includes comprehensive tools for evaluating model performance, such as convergence diagnostics, posterior distributions, credible intervals, and advanced performance metrics (e.g., Mean Absolute Error, Mean Squared Error, and Weighted Interval Score).
  • Versatility: Applicable to a wide range of scientific fields, with demonstrated use cases including the analysis of the 1918 influenza pandemic in San Francisco using different error structures (e.g., Poisson and negative binomial) within the SEIR model.
  • Tutorial Resources: Includes a detailed tutorial and video guide to help users get started with the toolbox.

Usage

1. Configuring Your Model

Start by defining your ODE model, parameters, and priors in the options_generaluse.R file. This file allows you to specify the model variables, parameters, error structures, and priors.

2. Running the Model

After configuring your model, use the run_MCMC.R script to fit the model to your data. This script performs the Bayesian parameter estimation using the Stan files automatically generated by the toolbox.

3. Analyzing Results

Once the model fitting is complete, use the run_analyzeResults.R script to generate and analyze the results. This script will produce various outputs, including Excel files with the parameter estimates, performance metrics, and convergence diagnostics.

4. Example: SEIR Model for the 1918 Influenza Pandemic

This toolbox includes several predefined case studies, such as the SEIR model used to analyze the 1918 Influenza Pandemic in San Francisco. The toolbox allows users to compare different error structures (e.g., Poisson vs. negative binomial) and assess the quality of model fit with performance metrics such as Mean Absolute Error (MAE) and Weighted Interval Score (WIS).

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). See the LICENSE file for details.

Citation

If you use this toolbox in your research, please cite the following paper:

Karami, H., Bleichrodt, A., Luo, R., & Chowell, G. (2024). BayesianFitForecast: An R toolbox for parameter estimation and forecasting with quantified uncertainty in ordinary differential equation models. Under review.

Owner

  • Login: gchowell
  • Kind: user

GitHub Events

Total
  • Watch event: 4
  • Push event: 12
  • Fork event: 1
Last Year
  • Watch event: 4
  • Push event: 12
  • Fork event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • cran 223 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: BayesianFitForecast

Bayesian Parameter Estimation and Forecasting for Epidemiological Models

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 223 Last month
Rankings
Dependent packages count: 27.6%
Dependent repos count: 34.0%
Average: 49.5%
Downloads: 86.9%
Maintainers (1)
Last synced: 10 months ago