View source: R/roc_plot_format.R
roc_plot_format | R Documentation |
Format data prior to plotting ROC plots for one or more models.
roc_plot_format( data, model = NULL, event = "event", predict = "predict", smooth = F, confint = F )
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") |
smooth |
Logical value specifying if the ROC curve should be smoothed (default=FALSE) |
confint |
Logical value specifying if the confidence interval of the sensitivity/specificity should be calculated (default = FALSE) |
Tibble with sensitivity/specificity for one or more models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.