This repository contains all the code (but not the data) used for our smoking behavior simulation model.
The main files of interest are:
- simulation.py - The main code for the simulation behavior lives here
- uncertainty_analysis_create_params.py & uncertainty_analysis_do_runs.py - This code orchestrates the uncertainty analysis--the process of randomly varying simulation parameters so that we can see how simulation results look over a large number of slightly different runs.
If you use this work, please cite:
@article{mills-tapphughes2026
doi = {10.1371/journal.pone.0342083},
author = {Mills, Sarah D. AND Tapp Hughes, Nicholas AND Zhang, Yu AND Ribisl, Kurt M. AND Wiesen, Christopher A. AND Fan, Jiaqian AND Hassmiller Lich, Kristen},
journal = {PLOS ONE},
publisher = {Public Library of Science},
title = {Development and validation of the Tobacco Use Individual-level Simulation and Tracking (TwIST) Model},
year = {2026},
month = {02},
volume = {21},
url = {https://doi.org/10.1371/journal.pone.0342083},
pages = {1-17},
number = {2},
}