risk_functions | R Documentation |
Factory function for estimating an ROCR-based risk for a given ROCR measure, and the risk is defined as one minus the performance measure.
custom_ROCR_risk(measure, cutoff = 0.5, name = NULL, ...)
measure |
A character indicating which |
cutoff |
A numeric value specifying the cutoff for choosing a single
performance measure from the returned set. Only used for performance
measures that are cutoff-dependent and default is 0.5. See
|
name |
An optional character string for user to supply their desired
name for the performance measure, which will be used for naming subsequent
risk-related tables and metrics (e.g., |
... |
Optional arguments to specific |
This risk does not take into account weights. In order to use this risk, it must first be instantiated with respect to the ROCR performance measure of interest, and then the user-defined function can be used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.