Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

alexvantwisk/bayesianICSimulations: BMC Medical Research Methodology Release

Domain:

healthcare

Record type:

software
Creator:
AleAle
Publisher:
Zenodo
Host:avatar

v1.0.0 — Initial Release
This is the first stable release of bayesianICSimulations, developed as part of an MSc Biostatistics dissertation at Stellenbosch University.
What this package does
Implements a large-scale simulation study comparing two Bayesian MCMC samplers for fitting log-logistic AFT models to interval-censored survival data with survey weights:

  • HMC via Stan / CmdStanR
  • Metropolis-Hastings via JAGS / rjags

The study covers 5,400 simulated datasets across three sample sizes (n = 200, 2,000, 10,000) and evaluates sampler performance under the ADEMP framework (bias, RMSE, coverage, computational efficiency).

Included

Model fitting

  • fit_logistic_hmc() — HMC fitting with Stan; 4 parallel chains, reproducible seed, standardized output
  • fit_logistic_mh() — MH fitting with JAGS; zeros trick weighted likelihood, reproducible per-dataset seeds

Analysis pipeline

  • combine_results() — Aggregates thousands of .rds outputs; parses filenames, computes error metrics, flags convergence
  • perform_statistical_analysis() — ADEMP-framework analysis: bias, RMSE, coverage, CI width, all with Monte Carlo standard errors
  • mcse_mean(), mcse_prop(), calc_bias_rmse(), cohen_d() — MCSE and effect size utilities

Visualisation (13 figures)

  • R-hat ECDFs, ESS ridge plots, coverage plots, bias/RMSE comparisons, ESS-per-second, runtime, posterior means agreement, credible interval matrices

HPC support

  • PBS job array scripts for Stellenbosch University cluster
  • One-time setup script (installs JAGS from source, CmdStan, all R dependencies)
  • Supports 10,800 model fits in parallel

Real-data application

  • ZIMPHIA (Zimbabwe Population-based HIV Impact Assessment) analysis functions and tables

Requirements

  • R ≥ 4.0.0
  • CmdStan (via cmdstanr::install_cmdstan())
  • JAGS 4.x (brew install jags / apt-get install jags)

▎ Developed as part of an MSc Biostatistics research project, Stellenbosch University, 2025.

Visit

doi.org

Licenses

info:eu-repo/semantics/openAccessCreative Commons Attribution 4.0 Internationalhttps://creativecommons.org/licenses/by/4.0/legalcode

Similar

rebumatadele/ATS-research-releaseMedical Informatics in Medical ResearchData Traoré et al. (2012) BMC GeneticsDecolonising methodology: who benefits from indigenous knowledge research?Ablordeppey-Research-Lab/agric-scope-onion-pwalugu: Initial Release for Open Research Africa SubmissionTowards an African education research methodology: decolonising new knowledge

rebumatadele/ATS-research-release

Research code, measured artifacts, and reproducibility materials for a fair bilingual applicant-trac

Medical Informatics in Medical Research

Summary Objectives: Computers are widely used for data managemen

Data Traoré et al. (2012) BMC Genetics

Genotypes, for 19 microsatellites, of 520 goat sampled in 23 different locations of Burkina Faso. Ge

Decolonising methodology: who benefits from indigenous knowledge research?

It is common for indigenous knowledge (IK) researchers in South Africa to conduct studies within con

Ablordeppey-Research-Lab/agric-scope-onion-pwalugu: Initial Release for Open Research Africa Submission

Dataset and analysis scripts for onion seedling density estimation in Pwalugu, Ghana.

Towards an African education research methodology: decolonising new knowledge

South Africa has a number of policies to protect and promote indigenous knowledge (IK). The increasi