Description Usage Arguments Value Author(s) Examples
View source: R/roc_manyroc_cv.R
Do the ROC analysis (roc_analysis
) with cross-validation
for each column of x
(see also: roc_manyroc
).
1 2 3 4 5 6 7 8 | roc_manyroc_cv(
x,
gr,
optimize_by = "bac",
cvo = cvo_create_folds(x, gr, seeds = seeds, kind = kind),
seeds = NA_real_,
kind = NULL
)
|
x |
A numeric matrix, a data frame, a |
gr |
Either a string (scalar, |
optimize_by |
(
|
cvo |
a cross-validation object (cvo), created with function
|
seeds |
(
For more information about random number generation see
|
kind |
( Generator |
A data frame with results. The object also inferits from
class manyroc_cv
(for displaying purposes).
Vilmantas Gegzna
1 2 3 4 5 6 7 8 9 10 11 12 | library(manyROC)
# --- For numeric vectors objects ---
data(PlantGrowth)
set.seed(123456)
roc_manyroc_cv(PlantGrowth$weight, PlantGrowth$group)
roc_manyroc_cv(PlantGrowth$weight, gl(2, 1, 30))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.