Calculate the sample size for a SMART with a continuous, longitudinal outcome, in which the primary aim is to compare the mean between two adaptive interventions

This code calculates the minimum sample size necessary for a SMART with a continuous longitudinal outcome, in which the primary aim is a comparison of the mean of the outcome between two adaptive interventions starting with different interventions.