View source: R/prediction_discard.R
prediction_discard | R Documentation |
Ad-hoc technique that discards censored observations from the analysis
prediction_discard(train.data, test.data, xnam, tao, ens.library,
tuneparams = NULL)
train.data |
a data.frame with at least the following variables: event-times (censored) in the first column, event indicator in the second column and covariates/features that the user potentially want to use in building the preodiction model. Censored observations must be denoted by the value 0. Main event of interest is denoted by 1. |
test.data |
a data.frame with the same variables and names that the train.data |
xnam |
vector with the names of the covariates to be included in the model |
tao |
evaluation time point of interest |
tuneparams |
a list of tune parameters for each machine learning procedure. Name them as gam_param, lasso_param, randomforest_param, svm_param, bart_param, knn_param, nn_param. Default values are the same used for the simulation. |
a list with the predictions of each machine learning algorithm and the AUC of each of them
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.