Performs one random 50/50 split and evaluates whether both halves meet the HR consistency threshold.
run_single_consistency_split(df.x, N.x, hr.consistency, cox_init = 0)Numeric. 1 if both splits meet threshold, 0 if not, NA if error.
data.table. Subgroup data with columns Y, Event, Treat.
Integer. Number of observations in subgroup.
Numeric. Minimum HR threshold for consistency.
Numeric. Initial value for Cox model (log HR).