Fig. 1

The flowchart of the ITE estimation step in SECRETS for a parallel two-arm design. Counterfactual treatment outcomes for each participant in the control group are generated by using the treatment arm as the donor data; counterfactual control outcomes for participants in the treatment arm are generated analogously (not shown for visual simplicity). After applying SI, SECRETS transforms each time-series datum to a scalar by applying the outcome function defined by the trial investigator. SECRETS then calculates the ITEs by taking the pairwise difference between each patient’s outcome under the treatment and control conditions