# Calculate performance for bootstrapped ROC curve

### Description

Calculates different performance metric for ROC curves based on the bootstrap
results saved in an object of class `fbroc.roc`

. Confidence intervals
are included.

### Usage

1 2 3 4 |

### Arguments

`roc` |
An object of class |

`metric` |
A performance metric. Select "auc" for the AUC, "partial.auc" for the partial AUC, "tpr" for the TPR at a fixed FPR and "fpr" for the FPR at a fixed TPR. |

`conf.level` |
The confidence level of the confidence interval. |

`tpr` |
The fixed TPR at which the FPR is to be evaluated when |

`fpr` |
The fixed FPR at which the TPR is to be evaluated when |

`correct.partial.auc` |
Corrects partial AUC for easier interpretation using McClish correction. Details are given below. Defaults to TRUE. |

`show.partial.auc.warning` |
Whether to give warnings for partial AUCs below 0.5. Defaults to true. |

`...` |
Further arguments, that are not used at this time. |

### Value

A list of class `fbroc.perf`

, containing the elements:

`Observed.Performance` |
The observed performance. |

`CI.Performance` |
Quantile based confidence interval for the performance. |

`conf.level` |
Confidence level of the confidence interval. |

`metric` |
Used performance metric. |

`params` |
Parameters used to further specifiy metric, e.g. fixed TPR. |

`n.boot` |
Number of bootstrap replicates used. |

`boot.results` |
Performance in each bootstrap replicate. |

### Note on partial AUC correction

The partial AUC is hard to interpret without considering the range on which it is calculated. Not only does the partial AUC scale with the width of the interval over which it is calculated, but it also depends on where the interval is located. For example, if the ROC Curve is integrated over the FPR interval [0, 0.1] a completely random and non-discrimate classifier would have a partial AUC of 0.05, but the same ROC curve integrated over the interval [0.9, 1] would yield a partial AUC of 0.95.

The correction by McClish produces a corrected partial AUC given by:

*0.5
(1 + (partialAUC - auc.min) / (auc.max - auc.min))*

Here auc.min is the AUC achieved by the non-discriminate classifier and auc.max is the AUC achieved by a perfect classifier. Thus, a non-discriminative classifier will always have an AUC of 0.5 and a perfect one classifier will always have a partial AUCs of 1.

Unfortunately, the corrected partial AUC cannot be interpreted in a meaningful way if the curve is below the non-discriminate classifier, producing corrected partial AUCs values below 0.5. For this reason, fbroc will give a warning if the bootstrap produces corrected partial AUC values below 0.5.

### References

Donna Katzman McClish. (1989). *Analyzing a Portion of the ROC Curve.*
Medical Decision Making, http://mdm.sagepub.com/content/9/3/190.abstract.

### See Also

`boot.roc`

, `print.fbroc.perf`

,
`plot.fbroc.perf`

### Examples

1 2 3 4 5 6 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.