roc_metric: Derive diagnostic/prognostic accuracy metrics for one or more...

View source: R/roc_metric.R

roc_metricR Documentation

Derive diagnostic/prognostic accuracy metrics for one or more models.

Description

Derive diagnostic/prognostic accuracy metrics for one or more models.

Usage

roc_metric(data, model = NULL, event = "event", predict = "prediction")

Arguments

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")

Value

Tibble with relevant diagnostic/prognostic accuracy metrics for one or more models.


kamclean/predictr documentation built on Aug. 14, 2022, 4:35 a.m.