This repository includes scripts to replicate the analyses included in the UC Berkeley team's analysis of wasting and stunting as part of the Bill and Melinda Gates Foundation's KI project.
0-project-functions
: internal functions used in analysis and figure generation
1-data-cleaning
: scripts to prepare data for analysis
2-descriptive outcomes
: analysis scripts
3-prep-tmle-analysis
: scripts to prepare data for tmle
`4-longbow-tmle-analysis : scripts to run TMLE analysis on the Longbow platform (within the "run-longbow" subfolder) as well as scripts to compile and pool results
5-visualizations
: scripts that produce figures
-
risk factors
fig-rf-study-inventory-heatmap.R
corresponds to C+C manuscript Fig 1fig-Zscore-PAR-plots.R
corresponds to C+C manuscript Fig 2fig-PAR-VIM-comparison.R
corresponds to C+C manuscript Fig 2 insetfig-age-strat-rf-comp.R
corresponds to C+C manuscript Fig 3bfig-wast-perswast-comp.R
corresponds to C+C manuscript Fig 3cfig-spline-plots.R
corresponds to C+C manuscript Fig 3afig-early-wast.R
corresponds to C+C manuscript Fig 4bfig-wlz-quart-laz-velocity.R
corresponds to C+C manuscript Fig 4afig-mortality-plots.R
corresponds to C+C manuscript Fig 4crf_manuscript_figure_grids.R
compiles figures into manuscript grids- Extended data figures
fig-example-forest.R
corresponds to C+C manuscript Extended Fig 1fig-sig-heatmap.R
corresponds to C+C manuscript Extended Fig 2fig-Zscore-PAR-extended-data-plots.R
corresponds to C+C manuscript Extended Fig 3,4,7,8fig-PAF-plots.R
corresponds to C+C manuscript Extended Fig 5fig-mediation-analysis.R
corresponds to C+C manuscript Extended Fig 6fig-wlz-quart-stunting.R
corresponds to C+C manuscript Extended Fig 9fig-mortality-timing.R
corresponds to C+C manuscript Extended Fig 10fig-adjustment-effect-by-cov-number.R
corresponds to C+C manuscript Extended Fig 11fig-EValues.R
corresponds to C+C manuscript Extended Fig 12
- Supplimental figures - used in online supplimentary information
fig-kaplan-meier-curves.R
fig-Zscore-PAR-extended-data-plots-FE.R
fig.RR-plots.R
fig-spline-plots_sensitivity.R
fig-sig-heatmap-FE.R
fig-pooled.RR-plots.R
fig-muac-mort.R
fig-mortality-plots-sens-birth.R
fig-mortality-plots-sens.R
fig-mortality-plots-sens2.R
fig-mortality-plots-sens3.R
fig-muac-mort.R
-
shared
fig-CONSORT-figure1
corresponds to stunting and wasting manuscripts Extended Fig 1
-
stunting
fig-DHS-plots-laz.R
: corresponds to stunting manuscript Fig 2fig-study-inventory-heatmaps-stunt.R
: corresponds to stunting manuscript Fig 1fig-stunting-descriptive-epi-plots.R
: corresponds to stunting manuscript Fig 3 (includes other figures as well, some of which are not included in the manuscript currently)fig-stunting-descriptive-epi-plot-monthly24.R
: sensitivity analysis for Fig 3 that subsets cohorts to those with monthly measurements each month from 0 to 24 monthsfig-stunting-flow.R
: corresponds to stunting manuscript Fig 4afig-stunting-length-velocity.R
: corresponds to stunting manuscript Fig 5fig-stunting-length-velocity-subset.R
: sensitivity analysis for Fig 5 that excludes COHORTS Guatemala and Content cohortsfig-stunting-prevalence-map.R
: corresponds to stunting manuscript Extended Data Fig 2fig-stunting-rec-density.R
: corresponds to stunting manuscript Fig 4bfig-stunting-rec-prev.R
: corresponds to stunting manuscript Fig 4c
-
wasting
fig-wasting-study-inventory-heatmap.R
corresponds to wasting manuscript Fig 1fig-wasting-descriptive-epi-plots.R
corresponds to wasting manuscript Fig 2a-c, Fig4b,d, and Fig5a (includes many other figures as well, some of which are not included in the manuscript currently)fig-wasting-classification-example.R
corresponds to wasting manuscript Fig 4afig-wasting-rec-hist.R
corresponds to wasting manuscript Fig 4cfig-wasting-seasonality.R
corresponds to wasting manuscript Fig 3a-cfig-wasting-seasonality-diff-plot.R
corresponds to wasting manuscript Fig 3dfig-wasting-birth-traj.R
corresponds to wasting manuscript Fig 4efig-birth-wasting-recovery-stats.R
corresponds to wasting manuscript Fig 4e insetfig-wasting-prevalence-map.R
corresponds to wasting manuscript Extended Fig 2fig-DHS-plots-zscores.R
corresponds to wasting manuscript Extended Fig 3fig-pers-wasting.R
corresponds to wasting manuscript Extended Fig 4afig-co-flow.R
corresponds to wasting manuscript Fig 5bfig-co-initial-onset.R
in progress: creates plot of initial onset of wasting and stunting in children with bothfig-wasting-traj.R
archived; not used
data
: folder containing datasets that live off secure remote data server (agregate results or external data, but no subject-level data)
figures
: folder containing figure outputs from scripts from 5-visualizations
results
: folder containing output from analyses that do not contain identifiers