Description Usage Arguments Value Examples
Create ROC for Test and Train Set
1 |
data |
Dataframe with two columns 'obs': factor, response label 'yes': numeric, predicted probability of reference class (yes) |
A pROC::roc object
1 2 3 4 5 6 7 8 | data(pedis)
X_y <- prepare_X_y(data = pedis, outcome = "minor_amputation", vars = c("p", "d"))
folds <- create_folds(y = X_y$y)
fit <- train_pedis(X = X_y$X, y = X_y$y, folds = folds)
out_sample_prediction <- train_predict_all(folds = folds, X_y = X_y)
in_sample_prediction <- test_predict(fit)
create_roc(out_sample_prediction)
create_roc(in_sample_prediction)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.