Here is the design of a clinical trial:

Official Title: Action for Positive Brain Health Now: Ready, Set, Go

Included conditions:
- Hiv

Study Armgroups:
- {'label': 'GMT Intervention + Health Lifestyle Program', 'type': 'EXPERIMENTAL', 'description': 'The intervention group will participate in GMT, a standardized cognitive rehabilitation program which will be given as per the manual and which consists of 9 sessions each 2-hours in duration. They will also participate in the Healthy Lifestyle Program (HLP), which includes physical activity monitoring (step count, calories burned and sleep) with the Garmin vívofit 4 Activity Tracker, and recording and monitoring of goals with the My Goals app. Moreover, participants will be offered an exercise program with weaning to community-based resources and home exercise recommendations for longer-term sustainability.', 'interventionNames': ['Behavioral: Goal-management training']}
- {'label': 'Health Lifestyle Program', 'type': 'ACTIVE_COMPARATOR', 'description': 'The control group enters directly into the HLP without any other study visits. The HLP includes physical activity monitoring (step count, calories burned and sleep) with the Garmin vívofit 4 Activity Tracker, and recording and monitoring of goals with the My Goals app. Moreover, participants will be offered an exercise program with weaning to community-based resources and home exercise recommendations for longer-term sustainability.', 'interventionNames': ['Behavioral: Control']}

Interventions:
- {'type': 'BEHAVIORAL', 'name': 'Goal-management training', 'description': '9-week goal-management program', 'armGroupLabels': ['GMT Intervention + Health Lifestyle Program']}
- {'type': 'BEHAVIORAL', 'name': 'Control', 'description': 'Healthy Lifestyle Program', 'armGroupLabels': ['Health Lifestyle Program']}

Primary Outcomes:
- {'measure': 'Change in physical activity', 'description': 'Number of weeks in which physical activity guidelines are met (150 min of moderate to vigorous activity in bouts of 10 minutes)', 'timeFrame': '0 and 12 months'}
- {'measure': 'Change in social activity', 'description': 'Number of weeks in which at least one organized social activity was attended', 'timeFrame': '0 and 12 months'}

Please estimate the sample size based on the assumption: 
The study is powered at 90% with a Type I error risk of 0.05. The variance is adjusted by 15% to account for dropouts and data imputation.
Sample size
        Sample size calculations were based on estimates of usual rates of adherence to physical activity for Canadian adults estimated at 10â20% of the time [68], translating to approximately 9 of 52Â weeks for the control group and a desired 22Â weeks (50% of 43Â weeks) in the GMT priming group, which is the targeted adherence rate for interventions for cardiovascular risk factor improvement [69]. As we expect that elements of the HLP program will lead to some activity improvement in the control group (+â4Â weeks), we will power our study to detect a minimum difference of 9 activity weeks between groups over 43Â weeks with an estimated SD of 11Â weeks. With adjustment of the variance (standard deviation) by 15% to account for dropouts and the need to impute data, this yields an effect size of 0.71 [70]. For 90% power and risk of Type I error of 0.05, the required number of people is 38 participants per group. We will therefore target a total sample of 100 (50 per group) to account for uncertainty in our sample size assumptions and incomplete data. This sample size will also be sufficient to permit other statistical models to be used in the case of non-normality, such as ordinal regression.
        Taking advantage of the trial being embedded in the cohort, we will also compare platform outcomes for trial participants with platform outcomes for people who were eligible for the trial but not enrolled, including those at other sites, providing information about how the HLP with or without GMT compares to tailored brain health risk recommendations alone.