This function works as combination of roc_predict and calculate_performance, just object may have more than 1 row.

roc_predict_performance_by_gr(object, x_new, gr_new)

Arguments

object

Either an object of class roc_info or a data frame, which contains columns: "cutoff" (numeric), "below" (character), "above" (character).

x_new

A numeric vector to predict on.

gr_new

A factor vector associated with `x_new`

Value

A dataframe with performance calculated on test data