Code and resources associated with manuscript "Dynamic associations between glucose and ecological momentary cognition in Type 1 Diabetes"
Hawks, Z.W., Beck, E.D., Jung, L., Fonseca, L.M., Sliwinski, M., Weinstock, R.S., Grinspoon, E., Xu, I., Strong, R.W., Singh, S., Van Dongen, H.P.A., Frumkin, M.R., Bulger, J., Cleveland, M., Janess, K., Kudva, Y., Pratley, R., Rickels, M., Rizvi, S.R., Chaytor, N.S.* & Germine, L.T.*
Asterisk indicates co-senior authors
Please address all correspondence to zhawks@mclean.harvard.edu
- Links to cognitive EMA tasks (CogEMA_tasks.rtf).
- Code to clean data (Data_cleaning.R).
- Code to compute reliability and cognitive descriptive statistics (Reliability.R).
- Code for hypothesis-driven hierarchical Bayesian modeling (HB_Modeling.R).
- Code for visualizing & interpreting results of hierarchical Bayesian models (Aim1_analysis.R).
- Code for data-driven (lasso regression) analyses (Aim2_analysis.R).
- Post-hoc analyses where glucose was centered (but not scaled) within participants (posthoc_c.R).
- Post-hoc analyses using lasso regression to predict between-person differences in average cognition (posthoc_intercept.R).
- Functions sourced by analysis scripts (Functions.R).