# conf.fbroc.roc: Generates confidence intervals for the TPR for a range of... In fbroc: Fast Algorithms to Bootstrap Receiver Operating Characteristics Curves

## Description

Calculates confidence intervals for the TPR at different FPR values or vice versa. The stepsize at which the TPR or FPR is calculated can be set as needed.

## Usage

 ```1 2 3``` ```## S3 method for class 'fbroc.roc' conf(roc, conf.level = 0.95, conf.for = "tpr", steps = 250, ...) ```

## Arguments

 `roc` Object of class `fbroc.roc`. `conf.level` Confidence level to be used for the confidence intervals. Defaults to 0.95. `conf.for` Use "tpr" to get confidence regions for the TPR at specific FPRs. Use "fpr" instead for confidence regions for the FPR at specific TPRs. `steps` Number of discrete steps at which the requested rate and the confidence region is calculated. Defaults to 250. `...` Further arguments, that are not used at this time.

## Value

A data.frame containing either discrete TPR steps and estimates and confidence bounds for FPR or vice versa, depending upon `conf.for`.

## See Also

`boot.roc`

## Examples

 ```1 2 3 4 5``` ```data(roc.examples) example <- boot.roc(roc.examples\$Cont.Pred, roc.examples\$True.Class, n.boot = 100) conf(example, conf.for = "tpr", steps = 10) # get confidence regions for TPR at FPR conf(example, conf.for = "fpr", steps = 10) # get confidence regions for FPR at TPR ```

### Example output

```Loading required package: ggplot2
FPR    TPR Lower.TPR Upper.TPR
1  1.0 1.0000 1.0000000 1.0000000
2  0.9 1.0000 1.0000000 1.0000000
3  0.8 1.0000 1.0000000 1.0000000
4  0.7 1.0000 1.0000000 1.0000000
5  0.6 1.0000 0.9875000 1.0000000
6  0.5 0.9875 0.9750000 1.0000000
7  0.4 0.9875 0.9059375 1.0000000
8  0.3 0.9375 0.8243750 1.0000000
9  0.2 0.8750 0.7487500 0.9625000
10 0.1 0.7750 0.5559375 0.9190625
11 0.0 0.4000 0.3184375 0.6065625
TPR    FPR Lower.FPR Upper.FPR
1  1.0 0.5125 0.2934375 0.6190625
2  0.9 0.2625 0.1184375 0.3500000
3  0.8 0.1250 0.0434375 0.1940625
4  0.7 0.0750 0.0125000 0.1375000
5  0.6 0.0500 0.0125000 0.1125000
6  0.5 0.0250 0.0000000 0.0750000
7  0.4 0.0000 0.0000000 0.0565625
8  0.3 0.0000 0.0000000 0.0000000
9  0.2 0.0000 0.0000000 0.0000000
10 0.1 0.0000 0.0000000 0.0000000
11 0.0 0.0000 0.0000000 0.0000000
```

fbroc documentation built on May 2, 2019, 11:39 a.m.