roc_metric | R Documentation |
Derive diagnostic/prognostic accuracy metrics for one or more models.
roc_metric(data, model = NULL, event = "event", predict = "prediction")
data |
Dataframe with at least 2 columns: (1) binary outcome of interest, (2) predicted probability of outcome (binary or continuous) |
model |
Optional string specifying the column name specifying which model each outcome/prediction belongs to (default ="model"). This allows multiple models to be assessed within 1 function. |
event |
String specifying the column name containing the binary outcome of interest (default ="event") |
predict |
String specifying the column name containing predicted probability of outcome (default ="prediction") |
Tibble with relevant diagnostic/prognostic accuracy metrics for one or more models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.