Statistical Analysis
depression, anxiety
All data analyses were performed on an intention-to-treat basis. Generalized linear mixed models with a restricted maximum likelihood estimator implemented by the lme4 (version 1.1-26) package in R (version 4.0.4; R Foundation for Statistical Computing) were used to assess the associations between the condition and changes in clinical outcome variables over time (baseline, during the intervention, and after the intervention). The models included random intercepts for each participant; a random slope for time; and fixed effects of the treatment group, time, and treatment group-by-time interactions. Generalized linear mixed models were also used to examine whether changes in the mechanism measures of RNT may be associated with changes in depression and anxiety. Pearson correlations between engagement indices and clinical measures were calculated to explore the associations between app engagement and outcomes.