train.classifier: Predict Survival with classifcation methods

Description Usage Arguments Value

Description

Train machine learning classification models on time to event data using the caret package

Usage

1
2
3
train_classifier(form, dat, method = "gbm", predict.times,
  trControl = NULL, parallel = FALSE, mc.cores = 2, seed = 123,
  ...)

Arguments

form

survival formula

dat

data frame

method

classifcation algorithm. The following algorithms have been implemented.

  1. glm logistic regression

  2. glmnet elastic net

  3. gbm gradient boosting machine

  4. ranger random forest

  5. svmRadial support vector machine with radial basis kernel

  6. xgbTree extreme gradient boosting machine

predict.times

survival prediction times

trControl

control parameters for the caret train function. Set to NULL to use a default 5-fold cross-validation

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.