-
Install Miniconda
-
Install Quarto
-
Clone the repository:
git clone https://github.com/carissalow/good-day-quantitative
-
Restore the Python virtual environment:
cd good-day-quantitative conda env create -f environment.yml -n good-day
Copy CSV files containing the following input data to data/raw/
:
- Daily diary questionnaire data exported from Qualtrics
- Participant baseline demographics exported from REDCap
- Participant baseline PROMIS scores exported from REDCap
- Participant study start and end dates
Optional: Modify any data cleaning or analysis parameters exposed in config.yaml
.
Run all steps of the analysis:
bash -l run_analysis.sh
Steps of the analysis include:
- Activating the Python environment
- Cleaning daily diary, demographics, and PROMIS score data
- Computing descriptive statistics and correlations, performing t-tests, and fitting linear mixed effects regression models
- Creating a table and figure for our publication
- Rendering a summary report
After running the analysis pipeline:
- Cleaned data will be available in
data/processed/
- A log of the steps performed to clean the daily diary data can be found in
logs/clean_diary_data.log
- Analysis results will be available in
output/descriptives/
andoutput/results/
- The table and figure for our publication will be available in
output/tables/
andoutput/figures/
, respectively - The rendered summary report can be found in
reports/_site/good_day_quantitative_analysis_summary.html
You can view our report here.