Skip to content

zwihawks/MomentaryCogT1D

Repository files navigation

MomentaryCogT1D

Code and resources associated with manuscript "Dynamic associations between glucose and ecological momentary cognition in Type 1 Diabetes"

Authors:

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

Description of files:

  1. Links to cognitive EMA tasks (CogEMA_tasks.rtf).
  2. Code to clean data (Data_cleaning.R).
  3. Code to compute reliability and cognitive descriptive statistics (Reliability.R).
  4. Code for hypothesis-driven hierarchical Bayesian modeling (HB_Modeling.R).
  5. Code for visualizing & interpreting results of hierarchical Bayesian models (Aim1_analysis.R).
  6. Code for data-driven (lasso regression) analyses (Aim2_analysis.R).
  7. Post-hoc analyses where glucose was centered (but not scaled) within participants (posthoc_c.R).
  8. Post-hoc analyses using lasso regression to predict between-person differences in average cognition (posthoc_intercept.R).
  9. Functions sourced by analysis scripts (Functions.R).

About

Code and resources associated with manuscript "Dynamic associations between glucose and ecological momentary cognition in Type 1 Diabetes" - Hawks et al.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published