groupGeneric

0th

Percentile

pROC Group Generic Functions

Redefine base groupGeneric functions to handle auc and ci objects properly on operations and mathematical operations. Attributes are dropped so that the AUC/CI behaves as a numeric value/matrix, respectively. In the case of AUC, all attributes are dropped, while in CI only the CI-specific attributes are, keeping those necessary for the matrices.

Keywords
methods
Usage
Math(x, \dots)
Ops(e1, e2)
Arguments
x, e1, e2

auc objects, or mixed numerics and auc objects.

further arguments passed to other Math methods.

See Also

groupGeneric, auc

Aliases
  • groupGeneric
  • groupGeneric.pROC
  • groupGeneric.auc
  • groupGeneric.ci.coords
  • groupGeneric.ci.se
  • groupGeneric.ci.sp
  • Ops
  • Math
  • Ops.auc
  • Math.auc
  • Ops.ci.coords
  • Math.ci.coords
  • Ops.ci.se
  • Math.ci.se
  • Ops.ci.sp
  • Math.ci.sp
  • Ops.ci.auc
  • Math.ci.auc
  • Ops.ci
  • Math.ci
Examples
# NOT RUN {
data(aSAH)

# Create a roc object:
aucobj1 <- auc(roc(aSAH$outcome, aSAH$s100b))
aucobj2 <- auc(roc(aSAH$outcome, aSAH$wfns))

# Math
sqrt(aucobj1)
round(aucobj2, digits=1)

# Ops
aucobj1 * 2
2 * aucobj2
aucobj1 + aucobj2

# With CI
ciaucobj <- ci(aucobj1)
ciaucobj * 2
sqrt(ciaucobj)

# }
Documentation reproduced from package pROC, version 1.16.2, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.