Skip to content

tqian/S2S_primary_analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sense2stop Micro-Randomized Trial Primary Analysis

https://clinicaltrials.gov/ct2/show/NCT03184389

0. About Sense2Stop

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.

1. About This Repository

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.

2. Documentation

2.1 Code: Creating Data Frames

  • 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.

2.2 Code: Missing Data

  • 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.

2.2 Code: Availability condtion for randomization

2.3 Notes

3. Primary Analysis

3.1 Missing Data

3.2 Covariate Analysis

Detailed documentation for these analyses is provided in Covariate_Analyses.pdf.

3.3 Primary Analysis Method

3.4 Consistency Simulation Code

4. References

About

Sense2Stop Primary Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.8%
  • R 20.2%