calculate_sss: Calculate sensitivity + specificity statistic for a given set...

Description Usage Arguments Value

Description

Calculate sensitivity + specificity statistic for a given set of comparison data, at a given prediction probability threshold.

Usage

1
calculate_sss(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 number between -1 and 1 representing sensitivity + specificity - 1. Higher numbers represent accurate forecasts


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