A preview of this full-text is provided by SAGE Publications Inc.
Content available from Statistical Methods in Medical Research
This content is subject to copyright.
Original Research Article
A flexible micro-randomized trial design
and sample size considerations
Jing Xu1,2 , Xiaoxi Yan1, Caroline Figueroa3,4,
Joseph Jay Williams5,6,7,8,9,10 and Bibhas Chakraborty1,2,11,12
Statistical Methods in Medical Research
2023, Vol. 32(9) 1766–1783
© The Author(s) 2023
Article reuse guidelines:
sagepub.com/journals-permissions
DOI: 10.1177/09622802231188513
journals.sagepub.com/home/smm
Abstract
Technological advancements have made it possible to deliver mobile health interventions to individuals. A novel frame-
work that has emerged from such advancements is the just-in-time adaptive intervention, which aims to suggest the
right support to the individuals when their needs arise. The micro-randomized trial design has been proposed recently
to test the proximal effects of the components of these just-in-time adaptive interventions. However, the extant micro-
randomized trial framework only considers components with a fixed number of categories added at the beginning of
the study. We propose a more flexible micro-randomized trial design which allows addition of more categories to the
components during the study. Note that the number and timing of the categories added during the study need to be
fixed initially. The proposed design is motivated by collaboration on the Diabetes and Mental Health Adaptive Notifica-
tion Tracking and Evaluation study, which learns to deliver effective text messages to encourage physical activity among
patients with diabetes and depression. We developed a new test statistic and the corresponding sample size calculator for
the flexible micro-randomized trial using an approach similar to the generalized estimating equation for longitudinal data.
Simulation studies were conducted to evaluate the sample size calculators and an R shiny application for the calculators
was developed.
Keywords
mHealth, just-in-time adaptive intervention, micro-randomized trial, generalized estimating equation, longitudinaldata
1 Introduction
Mobile health (mHealth) is a term used to refer to the practice of medicine and health supported by mobile or wearables
devices1that are increasingly indispensable in our daily lives. It provides convenient support to various health domains
1Centre for Quantitative Medicine, Duke-NUS Medical School, Singapore
2Programme in Health Services and Systems Research, Duke-NUS Medical School, Singapore, Singapore
3Faculty of Technology, Policy and Management, Delft University of Technology, The Netherlands
4School of Social Welfare, University of California, Berkeley, USA
5Department of Computer Science, University of Toronto, ON, Canada
6Department of Statistical Sciences, University of Toronto, ON, Canada
7Department of Psychology, University of Toronto, ON, Canada
8Vector Institute for Artificial Intelligence Faculty Affiliate, University of Toronto, ON, Canada
9Department of Mechanical and Industrial Engineering, University of Toronto, ON, Canada
10Department of Economics, University of Toronto, ON, Canada
11Department of Statistics and Data Science, National University of Singapore, Singapore
12Department of Biostatistics and Bioinformatics, Duke University, Durham, NC, USA
Corresponding author:
Jing Xu, Centre for Quantitative Medicine, Duke-NUS Medical School, 8 College Road Singapore 169857, Singapore.
Email: kenny.xu@duke-nus.ed.sg