calculateROC: Calculate ROC curve for a given set of comparison data

Description Usage Arguments Value

Description

Calculate ROC curve for a given set of comparison data

Usage

1
calculateROC(threshold = 0.5, comparisonData)

Arguments

threshold

A number between 0 and 1. Any user whose estimated return probability exceeds this threshold is predicted to return next week.

comparisonData

A data.frame of the form (user_id, return_probability, showed_up). return_probability is the users' estimated return probability, and showed_up is an indicator of whether they actually showed up (1 = they showed up)

Value

A length-2 numeric vector of the form (1 - specificity, sensitivity) giving the coordinates in ROC space corresponding to the given prediction threshold.


johnchower/gloobtyd documentation built on May 19, 2019, 3:03 p.m.