
Reproducibility materials for the analysis and figures supporting this study. Survey data and R Markdown workflows are provided so reviewers and readers can regenerate tables and figures from the raw CSV.
Iddi Mapande1,*, Hussein Mohamed1,*, Jovine Bachwenkizi1, January G. Msemakweli2, Oscar Punguti3, Rajendra P. Shrestha4
* Iddi Mapande and Hussein Mohamed contributed equally and should both be indexed as first co-authors.
Corresponding author: January G. Msemakweli — jmsemak1@jh.edu
Malaria & Climate Dar es Salaam Survey Data.csv
De-identified survey data encoded in Windows-1252 (extended Latin). Note that some items are multi-response and space-separated within a single cell.Main Analysis.Rmd
Contains the workflow for data preparation, descriptive tables (Tables 1–4), chi-squared tests, and modified Poisson models with robust SEs. This file knits to PDF using xelatex.Figures.Rmd
Generates all manuscript figures, including the study map, information sources, observed climate changes, and Likert/mean scores. It exports high-resolution TIFFs directly to the figures_out/ folder.SHAPEFILES/
Tanzania 2022 PHC ward boundaries. The code specifically uses a subset of the Dar es Salaam region to generate the participant map.Generated outputs (after knitting) typically include figures/, figures_out/, Main Analysis.pdf, and Figures.pdf. You may omit large binary outputs from Git if you prefer; they can always be reproduced from the .Rmd files.
Main Analysis (Main Analysis.Rmd):
dplyr, tidyr, readr, stringr, forcats, knitr, kableExtra, sandwich, lmtest
Figures (Figures.Rmd):
dplyr, tidyr, readr, stringr, forcats, ggplot2, scales, patchwork, ggrepel, sf, ggspatial
Install in R, for example:
pkgs <- c(
"dplyr", "tidyr", "readr", "stringr", "forcats", "knitr", "kableExtra",
"sandwich", "lmtest", "ggplot2", "scales", "patchwork", "ggrepel", "sf",
"ggspatial", "rmarkdown"
)
install.packages(setdiff(pkgs, rownames(installed.packages())))
.Rmd files).rmarkdown::render("Main Analysis.Rmd")) to produce the analysis PDF and tables.rmarkdown::render("Figures.Rmd")) to produce the figures PDF and TIFF exports under figures_out/.The map in Figures.Rmd expects the shapefile SHAPEFILES/TANZANIA_2022PHC_WARDS_SHAPEFILES.shp and the survey CSV in the same relative paths as in the repository.
Encoding: the survey CSV should be read as Windows-1252 (as encoded in the .Rmd files) so characters such as curly apostrophes render correctly in PDFs.
Use of the survey data should respect the terms under which it was collected and any requirements of the originating institutions. If you reuse these materials, cite the associated publication when it is available.
Creative Commons Attributio…: you may share and adapt the materials with attribution; see the license text for full terms. CC BY 4.0 is standard for open reproducibility bundles that include data and analysis code together. A LICENSE file in this repository states the same terms for GitHub.
README generated for GitHub.