Description Usage Arguments Value
Calculate sensitivity + specificity statistic for a given set of comparison data, at a given prediction probability threshold.
1 | calculate_sss(threshold = 0.5, comparisonData)
|
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) |
A number between -1 and 1 representing sensitivity + specificity - 1. Higher numbers represent accurate forecasts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.