Can we use routine data for decision-making? A time trend comparison between survey and routine data at regional and national level in Mali
Authors/Creators
Description
*Denotes equal authorship.
All analysis code for Can we use routine data for decision-making? A time trend comparison between survey and routine data at regional and national level in Mali have been made available for replication or extension.
GetData.R saves the raw DHS and HMIS data, GetTables.R calculates survey-weighted indicators and produces the tables in the paper, and GetFigures.R reproduces figures from the paper. Users can run GetFigures.R without accessing the raw data.
We cannot directly provide the HMIS routine data which was provided to us by the Ministry of Health, nor can we provide the DHS household data, which require access permission. However, we encourage all who are interested in obtaining DHS data to register for accounts with dhsprogram.com.
We used these DHS files in this analysis:
MLIR41FL.DTA
MLIR52FL.DTA
MLIR6HFL.DTA
MLBR41FL.DTA
MLBR52FL.DTA
MLBR6HFL.DTA
GetData: loads raw data and saves as .RData file (runtime = 7mins)
GetTables: loads saved .RData and produces results for tables 3-6 (runtime = 4mins)
GetFigures: loads output from GetTables and makes figures 1-4 (runtime = 2mins)
We recommend maintaining the naming convention of the DHS, and routine data, files. If you put these files in the “Data” subfolder, and access the .R scripts by first opening the MaliTrends.Rproj file, you won’t have to edit data file names or directories.
Scripts were written in R 3.5.1. R packages required are listed at the top of each script. Users can install the most recent versions of these packages by running this code:
install.packages(c(' readstata13', 'haven', 'readr', 'survey', 'dplyr', 'data.table', 'ggplot2', 'tidyverse', 'gridExtra', 'grid', 'cowplot','stringr'), dependencies = T)
Files
Files
(227.4 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:095121c4153a13676b9adf31ccf62c00
|
13.3 kB | Download |
|
md5:dac6fbc9d95b6ff6bd920b89f0db1f5b
|
3.4 kB | Download |
|
md5:3c6e72f59cc5f29ff91945b5ce9093d5
|
14.6 kB | Download |
|
md5:c8d3f84a410f46d4d8b03a268e313e35
|
205 Bytes | Download |
|
md5:f09c8a78985ba26b1d8730db8387df9d
|
16.2 kB | Download |
|
md5:25e97c2d900b8ef2d3ca1a9ba4035886
|
227.3 MB | Download |