Trains CoxLasso, using cv.glmnet(s="lambda.min")
survcoxlasso_train(
df_train,
predict.factors,
inner_cv = 5,
fixed_time = NaN,
retrain_cox = FALSE,
verbose = FALSE
)
fitted CoxPH object with coefficient of CoxLasso or re-trained CoxPH with non-zero CoxLasso if retrain_cox = FALSE or TRUE
data frame with the data, "time" and "event" should describe survival outcome
list of the column names to be used as predictors
k in k-fold CV for lambda tuning
not used here, for internal use
whether to re-train coxph on non-zero predictors; FALSE by default
TRUE/FALSE prints warnings if no predictors in Lasso