Skip to contents

Fits a minimal Cox model to estimate hazard ratio with reduced overhead. Disables robust variance, model matrix storage, and other extras for speed.

Usage

get_split_hr_fast(df, cox_init = 0)

Arguments

df

data.frame or data.table with Y, Event, Treat columns.

cox_init

Numeric. Initial value for coefficient (default 0).

Value

Numeric. Estimated hazard ratio, or NA if model fails.