BayesSurveillance

Bayesian Surveillance Methods for Healthcare Performance Monitoring

BayesSurveillance is an R package that provides a comprehensive framework for Bayesian surveillance, prospective monitoring, and early warning detection in healthcare systems.

The package implements Bayesian statistical process control methods for monitoring healthcare quality, patient safety, provider performance, cancer pathways, clinical outcomes, and service delivery metrics. By incorporating Bayesian updating, posterior predictive inference, and sequential monitoring techniques, BayesSurveillance enables earlier detection of performance deterioration while appropriately quantifying uncertainty.


Key Features

Bayesian Monitoring

Sequential Surveillance

Risk Adjustment

Model Assessment

Visualisation


Methodological Contributions

BayesSurveillance extends traditional healthcare monitoring approaches by combining:

  1. Bayesian updating of performance estimates.
  2. Sequential surveillance using Bayesian control charts.
  3. Risk-adjusted monitoring of healthcare outcomes.
  4. Posterior predictive alerting systems.
  5. Uncertainty quantification using posterior probabilities.
  6. Early warning signal detection for emerging performance deterioration.

These methods are particularly useful in settings involving:


Installation

Install the development version directly from GitHub:

install.packages("remotes")

# remotes::install_github("zerish12/BayesSurveillance")
install.packages("BayesSurveillance", repos = c('https://zerish12.r-universe.dev', 'https://cloud.r-project.org'))

Quick Start

library(BayesSurveillance)

# Simulate surveillance data
dat <- simulate_surveillance_data()

# Beta-binomial monitoring
fit <- beta_binomial_monitor(
  events = dat$events,
  total = dat$total
)

summary(fit)

# Plot surveillance results
plot_surveillance(fit)

Bayesian CUSUM Example

cusum_fit <- bayesian_cusum(
  events = dat$events,
  total = dat$total
)

plot_surveillance(cusum_fit)

Bayesian EWMA Example

ewma_fit <- bayesian_ewma(
  events = dat$events,
  total = dat$total
)

plot_surveillance(ewma_fit)

Example Figures

Figure 1: Beta-Binomial Surveillance

Beta-Binomial Surveillance


Figure 2: Bayesian CUSUM Monitoring

Bayesian CUSUM


Figure 3: Bayesian EWMA Monitoring

Bayesian EWMA


Applications

BayesSurveillance can be applied to:


Research Applications

Potential applications include:


Citation

If you use BayesSurveillance in research, please cite:

citation("BayesSurveillance")

Author

Muhammad Zahir Khan

Independent Researcher

GitHub: https://github.com/zerish12


License

GPL-3


Development Status

BayesSurveillance is under active development.

Future releases will include: