Methods
Following feasibility assessments of candidate RCTs in available U.S. data sources, we emulated the KEYNOTE-189 (metastatic NSCLC) trial of first-line pembrolizumab+chemotherapy vs. chemotherapy in two electronic health record datasets (DS1 and DS2) and the PALOMA-2 (advanced breast cancer) trial of first-line palbociclib+letrozole vs. letrozole in DS1. Trial entry criteria were applied, as feasible. Treatment status was based on first-line regimens (using data partner-defined line of therapy algorithms) initiated during a fixed ascertainment period. Inverse probability of treatment weighting was used to control baseline confounding. Cox proportional hazards models were used to estimate the primary outcome(s). RWD-based estimates were assessed for qualitative agreement (same direction/magnitude) with RCT results.