https://clinicaltrials.gov/ct2/show/NCT03184389
The aim of this research is to build systems that can recognize when people are stressed and then provide them with relaxation prompts in the moment to reduce their likelihood of being stressed, smoking, or overeating in the near future. This should help smokers be more effective in their attempts to quit by reducing their tendency to lapse when they are stressed or experiencing other negative moods or behaviors.
The Sense2Stop study evaluates whether an app and worn sensors can help smokers quit smoking and not relapse.
This repository contains code for performing analysis of the Sense2stop MRT data and documentation. Files corresponding to particular stages of the project are placed under the relevant header.
- create_activity_df.py is a Python script used to create
~/Box/MD2K Northwestern/Processed Data/primary_analysis/data/pickle_jar/activity_df.pkl
, a cleaned dataset corresponding to the classification of physical activity. - create_log_dicts.py is a Python script used to create
~/Box/MD2K Northwestern/Processed Data/primary_analysis/data/pickle_jar/log_dict.pkl
, a cleaned dataset corresponding to the phone log files, specifically at randomization times. - create_quality_ecg_df.py is a Python script used to create
~/Box/MD2K Northwestern/Processed Data/primary_analysis/data/pickle_jar/quality_ecg_df.pkl
, a cleaned dataset corresponding to ECG quality. - create_quality_rep_df.py is a Python script used to create
~/Box/MD2K Northwestern/Processed Data/primary_analysis/data/pickle_jar/quality_rep_df.pkl
, a cleaned dataset corresponding to REP quality. - create_stress_episode_classification_df.py is a Python script used to create
~/Box/MD2K Northwestern/Processed Data/primary_analysis/data/pickle_jar/stress_episode_classification_df.pkl
, a cleaned dataset corresponding to stress episode classification.
- show_missing_data.py is a Python script used to show the extent of the missing data in the primary outcome. In addition, this script creates a data frame that is used to run one of the covariate analyses in order to predict missing episodes within the primary outcome.
- The file Missing_Data_in_Sense2Stop.pdf provides detail on the missing data within the Sense2Stop MRT.
Detailed documentation for these analyses is provided in Covariate_Analyses.pdf.
-
The file Sense2Stop_Supplement.pdf provides the appendix for the design paper with detail on the primary analysis methodology.
- Data generating model: R/dgm.r
- Estimator: R/estimator.r
- Simulation consistency: R/simulation_consistency.r