Learn R Programming

disbayes

The development repository for the disbayes R package for chronic disease epidemiology estimation with incomplete data.

  • disbayes can estimate age-specific case fatality for a disease, given:

    • published information on age-specific mortality and at least one of incidence or prevalence

    • some indication of the uncertainty associated with the published estimates, either as a credible interval, or by expressing the estimate as a number of cases with associated denominator.

  • The underlying model is a three-state multi-state model with states given by no disease, disease and death. Remission from the disease is optional.

  • Case fatality, incidence or remission rates can be modelled as smooth functions of age, through a spline model, or estimated independently for each age. Case fatality or remission can also be modelled as age-constant.

  • Two alternative estimation methods can be used, both based on the Stan software.

    • exact point estimation using optimisation to obtain the posterior mode, with credible intervals based on an approximation to the Bayesian posterior. This is generally instant to compute, but the uncertainty quantification is approximate.

    • full Bayesian estimation using Markov Chain Monte Carlo. This gives more accurate uncertainty quantification but is computationally intensive.

  • The following more advanced models are provided, which are all more computationally intensive:

    • hierarchical models for data by age and area, which share information between areas to strengthen estimates from areas with less data

    • hierarchical models for data by age, area and gender, where the effect of gender is assumed to be the same for every area

    • models with assumed trends in disease incidence or case fatality through calendar time, where trends can be age-specific (non-hierarchical models only)

  • It is inspired by the DisMod II and DisMod-MR packages used for the Global Burden of Disease studies. It modifies and extends the formal, fully Bayesian framework described in the book by Flaxman et al..

  • The method is fully described in Jackson et al. (2023).

  • Source code is at the GitHub repository

Installation

CRAN version

install.packages("disbayes")

Development version

install.packages("devtools") # if devtools not already installed
library(devtools)
install_github("chjackson/disbayes")

If this fails, make sure that the rstan package is set up properly, as explained here. If you are on Windows, then follow these instructions for installing rstan from source on Windows.

Introduction and worked example

Bayesian estimation of chronic disease epidemiology from incomplete data: the disbayes package

Copy Link

Version

Install

install.packages('disbayes')

Monthly Downloads

215

Version

1.1.0

License

GPL-3

Maintainer

Christopher Jackson

Last Published

September 9th, 2023

Functions in disbayes (1.1.0)

ihdtrends

Trends in ischemic heart disease in England
loo.disbayes

Leave-one-out cross validation for disbayes models
ihdengland

Ischemic heart disease in England
conflict_disbayes

Conflict p-values
loo_indiv

Extract observation-specific contributions from a disbayes leave-one-out cross validation
disbayes_hier

Bayesian estimation of chronic disease epidemiology from incomplete data - hierarchical model for case fatalities.
ci2num

Convert a proportion and credible interval to a numerator and denominator
plot.disbayes

Quick and dirty plot of estimates from disbayes models against age
disbayes-package

The 'disbayes' package.
disbayes

Bayesian estimation of chronic disease epidemiology from incomplete data
plot.disbayes_hier

Quick plot of estimates from hierarchical disbayes models against age
tidy_obsdat

Extract observed data from a disbayes model fit
reexports

Objects exported from other packages
tidy.disbayes

Form a tidy data frame from the estimates from a disbayes fit
plotfit_data_disbayes

Create tidy data for a check of observed against fitted outcome probability estimates from disbayes
plotfit_disbayes

Graphical check of observed against fitted outcome probabilities from disbayes