Effectiveness of intervention program on changes in blood glucose, blood pressure, body mass index and waist-to-hip ratio of patients with diabetes in a resource-limited setting in Kenya.
We are assuming you have R Software
and Rstudio IDE
installed. If not you can download and install R software then followed by RStudio/Posit IDE.
The data used for analysis can be accessed through APHRC Microdata portal upon proper approvals.
- Data used for analysis:
wdfbaseline_cleaned.dta
andwdffollowup_cleaned.dta
-
The
wdf_baseline_followup_recode_file.xlsx
file contains:-
MetaData about study in the study_title sheet.
-
Categorization of the locations in the location sheet.
-
Data dictionary of the baseline data in the rename_vars_baseline sheet.
-
Data dictionary of the follow-up data in the rename_vars_followup sheet.
-
selected_vars sheet that contains merged original and new created variables during data cleaning. Guide on variables to be analyzed and visualized.
-
drop_selected_vars sheet for dropped variables that won't be used in modelling.
-
model_params sheet with set parameters for imputation and correlation.
-
After cloning the repository or downloading the ZIP, you also need the data files (Data used for analysis) in the data sub-folder of Effectiveness_of_intervention_on_blood_glucose-BP-BMI-waist_hip_ratio folder.
Open Rstudio
then set your working directory to the Effectiveness_of_intervention_on_blood_glucose-BP-BMI-waist_hip_ratio folder.
- Copy the below code to run all files at once in Rstudio
source("main.R")
- To run individual files, open the
main.R
script, and run from the beginning.