DOI: 10.7910/dvn/y8hfxw
title: Replication Data for: "Promoting Sustainable Travel Modes Through Health and Active Lifestyle Messaging"

description: &lt;b&gt;Data and Code Repository&lt;/b&gt; &lt;br&gt;
This repository contains the anonymized dataset and analysis code associated with the paper titled "Promoting Sustainable Travel Modes Through Health and Active Lifestyle Messaging." &lt;br&gt;
&lt;b&gt;Contents&lt;/b&gt;
&lt;ul&gt;
 &lt;li&gt;anonymized_data.csv: Contains the raw anonymized dataset (1 MB) used in the analysis.&lt;/li&gt;
 &lt;li&gt;analysis_v1.ipynb: Python scripts for analysis, and visualization. (Last Modified July 7, 2025, 5:00PM)&lt;/li&gt;
 &lt;li&gt;README.md: Description of the repository contents and usage.&lt;/li&gt;
 &lt;li&gt;datadictionary.md: A detailed explanation of each variable in the final dataset. 68 unique variables, 4,840 observations.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Requirements&lt;/b&gt; &lt;br&gt;
Packages required to run this analysis are pandas==2.0.3, numpy==1.24.1, statsmodel.api==0.14.1. This code was tested on Python 3.8.13 and 3.9.2 and on macOS Sequoia 15.5 and Google Colab CPUs. &lt;br&gt;
&lt;b&gt;Structure of the code&lt;/b&gt; &lt;br&gt;
The first code block loads the dataset and required packages. The second code block has helper function that generates dataframe for statistical analysis in the later blocks. The third code block has helper variables and functions to load model specifications and formatting model coefficients for analysis in the later blocks Code blocks four and above generate statistical results used in the paper. &lt;br&gt;
&lt;b&gt;Output&lt;/b&gt; &lt;br&gt;
This code package generates the necessary derived data consisting of odds ratios and uncertainty for Figure 1 and Figure 2 in the main document:
&lt;ul&gt;
 &lt;li&gt;Main Document Fig. 1 Treatment effects of air quality impacts targeting bus transit and active lifestyle messaging targeting walking or biking.&lt;/li&gt;
 &lt;li&gt;Main Document Fig. 2 Comparative treatment effects of health and active lifestyle messaging for all respondents and those with underlying health conditions.&lt;/li&gt;
&lt;/ul&gt;
This code package generates the following tables:
&lt;ul&gt;
 &lt;li&gt;Main Document Table 1 Heterogeneous treatment effects across key subgroups.&lt;/li&gt;
 &lt;li&gt;Table S4. Treatment effects of air pollution exposure messaging in Experiment 1 (personal and community benefits targeting bus transit)&lt;/li&gt;
 &lt;li&gt;Table S5. Treatment effects of air quality improvement messaging in Experiment 2 (personal and community benefits targeting bus transit)&lt;/li&gt;
 &lt;li&gt;Table S6. Treatment effects of air quality improvement messaging in Experiment 2 (personal gain targeting walking)&lt;/li&gt;
 &lt;li&gt;Table S7. Treatment effects of air quality improvement messaging in Experiment 2 (personal and community benefits targeting walking)&lt;/li&gt;
 &lt;li&gt;Table S8. Treatment effects of air quality improvement messaging in Experiment 2 (personal gain targeting biking)&lt;/li&gt;
 &lt;li&gt;Table S9. Treatment effects of air quality improvement messaging in Experiment 2 (personal and community benefits targeting biking)&lt;/li&gt;
 &lt;li&gt;Table S10. Treatment effects of all active lifestyle messaging in Experiment 3 (personal and community benefits targeting walking and biking)&lt;/li&gt;
 &lt;li&gt;Table S11. Treatment effects of all active lifestyle messaging in Experiment 3 (personal gain targeting biking)&lt;/li&gt;
 &lt;li&gt;Table S12. Treatment effects of active lifestyle messaging in Experiment 3 (personal and community benefits targeting biking)&lt;/li&gt;
 &lt;li&gt;Table S13. Treatment effects of step count messaging in Experiment 3 (personal and community benefits targeting walking)&lt;/li&gt;
 &lt;li&gt;Table S14. Treatment effects of calories burned messaging in Experiment 3 (personal and community benefits targeting walking)&lt;/li&gt;
 &lt;li&gt;Table S15. Treatment effects of heart health messaging in Experiment 3 (personal and community benefits targeting walking and biking)&lt;/li&gt;
 &lt;li&gt;Table S16. Heterogeneous treatment effects of air pollution exposure messaging in Experiment 1 (personal gain targeting bus transit)&lt;/li&gt;
 &lt;li&gt;Table S17. Heterogeneous treatment effects of air pollution exposure messaging in Experiment 1 (personal and community benefits targeting bus transit)&lt;/li&gt;
 &lt;li&gt;Table S18. Heterogeneous treatment effects of air quality improvement messaging in Experiment 2 (personal gain targeting bus transit)&lt;/li&gt;
 &lt;li&gt;Table S19. Heterogeneous treatment effects of air quality improvement messaging in Experiment 2 (personal and community benefits targeting bus transit)&lt;/li&gt;
 &lt;li&gt;Table S20. Heterogeneous treatment effects of active lifestyle messaging in Experiment 3 (personal gain targeting walking)&lt;/li&gt;
 &lt;li&gt;Table S21. Heterogeneous treatment effects of active lifestyle messaging in Experiment 3 (personal and community benefits targeting walking)&lt;/li&gt;
 &lt;li&gt;Table S22. Heterogeneous treatment effects of different active lifestyle messaging in Experiment 3 targeting walking&lt;/li&gt;
 &lt;li&gt;Table S23. Heterogeneous treatment effects of calories burned messaging for commuters with varying daily travel times in Experiment 3 (targeting walking)&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Replication&lt;/b&gt; &lt;br&gt;
Supporting replication code is also available here: https://github.com/asensio-lab/health-active-lifestyle. This code package was last replicated on July 7, 2025 by @YifanLiu0304 &lt;br&gt;
&lt;b&gt;Declaration of generative AI and AI-assisted technologies in the coding process&lt;/b&gt; &lt;br&gt;
During the preparation of this work the authors used ChatGPT in order to debug code errors such as KeyError, syntax errors in python scripts that were used to generate statistical tables. After using this tool/service, the researchers reviewed, edited, and replicated all code.
description: Python, 3.8.13
description: Python, 3.9.2
description: Supporting replication code is also available here: https://github.com/asensio-lab/health-active-lifestyle