train.cox: Cox proportional hazard model

Description Usage Arguments Value

Description

Train the Cox model through cross-validation and select the optimal survival classification threshold. A regularized Cox approach which performs feature selection is also implemeted. For regularize cox, the optimal set of variables is selected through cross-validation and used to train the final model on the complete data

Usage

1
2
train_cox(form, dat, newdata = NULL, predict.times, trControl = NULL,
  parallel = FALSE, mc.cores = 2, seed = 123, ...)

Arguments

form

survival formula

dat

data frame

predict.times

survival prediction times

trControl

list of control parameters:

  1. number: number of cross-validations

  2. regularize: train regularize cox?

parallel

run cross-validation in parallel? Uses mclapply which works only on linux

...

further arguments passed to caret or other methods.

tuneLength

same as tuneLength in the caret package

Value

returns a list with items:


nguforche/MLSurvival documentation built on July 28, 2019, 1:59 p.m.