Skip to contents

Wraps survival::coxph() with Efron (default) or Breslow tie handling and returns a tidy list including hazard ratios, CIs, p-values, and the Breslow baseline cumulative hazard.

Usage

morie_survival_cox(
  data,
  duration_col,
  event_col,
  covariate_cols,
  ties = c("efron", "breslow"),
  confidence = 0.95,
  penalizer = 0
)

Arguments

data

data.frame.

duration_col

Name of the time column.

event_col

Name of the 0/1 event column.

covariate_cols

Character vector of covariate column names.

ties

"efron" (default) or "breslow".

confidence

Confidence level (default 0.95).

penalizer

L2 penalty (passed via ridge() term in the formula).