This repository contains code to conduct analyses for the AntiBiotics for Children with Diarrhea (ABCD) clinical trial.
The repository has been broken into the following subfolders:
-
data/contains the simulated ABCD dataset and a data dictionary for the datasetabcd_simulated_data550.csvis the dataset and will be loaded through the R scripts to conduct analysesABCD_OTR_Data Dictionary_SimulationData.xlsxis a data dictionary for the simulated dataset for user reference (not needed by any scripts in repository)
-
R/contains all necessary scripts to create the tables, figures, and models00_load_abcd_data.Ris run first to load and format the data. It is sourced by the other R scripts.01_make_tables.Ris run second to create relevant tables describing the dataset02_make_figures.Ris run third to create figures for the single pathogen quantities03_fit_model.Ris run fourth to fit the model and create a figure corresponding to the model
-
output/contains all relevant output produced from the R scripts to be knit into the final report (not pushed to GitHub, can be generated via running scripts) -
report.Rmdis the Markdown document that knits together the figures and tables into the final report -
render_report.Rrenders the final R Markdown report from the command line -
Makefilecan be used to build the final report. It contains rules for making the tables, figures, and model. It also has a rule to clean up any undesired output. To build the final html report from scratch, run themakecommand