For repeated calls with the same data structure but different subsets, this version pre-processes the data structure once.
cox_summary_batch(
Y,
E,
Treat,
Strata = NULL,
subset_indices,
return_format = c("formatted", "numeric")
)List of results, one per subset.
Numeric vector of outcome (full dataset).
Numeric vector of event indicators (full dataset).
Numeric vector of treatment indicators (full dataset).
Vector of strata (optional, full dataset).
List of integer vectors, each defining a subset to analyze.
Character. "formatted" or "numeric".