Dietary staple protein supply and meningitis cause-specific mortality fraction across 54 African countries: an ecological cross-sectional study — dataset and analysis code

Published: 12 November 2026| Version 3 | DOI: 10.17632/3769v9bbyn.3
Contributor:

Description

Country-level dataset and R analysis code for an ecological cross-sectional study of dietary staple protein supply (FAOSTAT, 2019–2023) and meningitis cause-specific mortality fraction (GBD 2023) across 54 African countries, including a 26-country WHO meningitis belt subset. The R script reproduces every figure and analysis in the manuscript — the primary beta regression model, three pre-specified sensitivity analyses, circularity/VIF assessments, and four robustness checks (leave-one-out influence, nonlinearity, spatial autocorrelation, and exclusion of countries with substituted or non-contemporaneous dietary exposure data).

Files

Steps to reproduce

Download both files (Sanjeev_Meningitis_Analysis_Final_v7.R and Africa_Countries_Mendeley_Upload.xlsx) into the same local folder. Install R (version 4.5.3 or later) and the required packages if not already present: readxl, dplyr, ggplot2, sf, rnaturalearth, rnaturalearthdata, viridis, patchwork, betareg, car, corrplot, ggrepel, scales, RColorBrewer, reshape2, spdep (an install.packages() line listing all of these is included, commented out, near the top of the script). Open the script in R or RStudio with the working directory set to the folder containing both files (or open the folder as an RStudio project) — no file paths need editing. Run the script from top to bottom; it reads Africa_Countries_Mendeley_Upload.xlsx (sheet “Africa_Countries”) automatically. The script creates an “outputs” subfolder automatically and saves all figures, tables and robustness-check results there, in the same order they appear in the manuscript.

Institutions

Categories

Nutrition, Disease Epidemiology, Meningitis

Licence