fdrtprcurve: Accessor and replacement functions for 'fdrtprcurve' slot

Description Usage Arguments Value Author(s) Examples

Description

Accessor and replacement functions for the fdrtprcurve slot in a COBRAPerformance or COBRAPlot object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fdrtprcurve(x, ...)

fdrtprcurve(x, ...) <- value

## S4 method for signature 'COBRAPerformance'
fdrtprcurve(x)

## S4 replacement method for signature 'COBRAPerformance,data.frame'
fdrtprcurve(x) <- value

## S4 replacement method for signature 'COBRAPlot,data.frame'
fdrtprcurve(x) <- value

Arguments

x

A COBRAPerformance or COBRAPlot object.

...

Additional arguments.

value

A data frame giving information necessary to generate curves of observed FDR vs TPR for each method and each stratification level.

Value

The accessor function returns a data frame giving information necessary to generate curves of observed FDR vs TPR for each method and each stratification level.

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtprcurve")
head(fdrtprcurve(cobraperf))

Example output

        FDR       TPR NBR       CUTOFF  TP FP   TN  FN TOT_CALLED DIFF NONDIFF
1       NaN 0.0000000   0         -Inf   0  0 1580 819       2399  831    3027
2 0.1566952 0.3561974 351 0.000000e+00 296 55 1525 523       2399  831    3027
3 0.1624650 0.3598075 357 1.110223e-16 299 58 1522 520       2399  831    3027
4 0.1611111 0.3634176 360 2.220446e-16 302 58 1522 517       2399  831    3027
5 0.1606648 0.3646209 361 3.330669e-16 303 58 1522 516       2399  831    3027
6 0.1602210 0.3658243 362 4.440892e-16 304 58 1522 515       2399  831    3027
  method basemethod   meas    fullmethod splitval
1  edgeR      edgeR __padj edgeR_overall  overall
2  edgeR      edgeR __padj edgeR_overall  overall
3  edgeR      edgeR __padj edgeR_overall  overall
4  edgeR      edgeR __padj edgeR_overall  overall
5  edgeR      edgeR __padj edgeR_overall  overall
6  edgeR      edgeR __padj edgeR_overall  overall

iCOBRA documentation built on April 17, 2021, 6:07 p.m.