R/Statistics_functions.R
cox_univar_fun_cts.RdFits a univariate Cox model for a continuous predictor and returns the HR, 95% CI, and Wald p-value.
cox_univar_fun_cts(data_fun, res_time, res_event, var)A single-row matrix of HR and p-value.
if (FALSE) { # \dontrun{
cox_univar_fun_cts(mydata, "OS_time", "OS_event", "Age")
} # }