print

0th

Percentile

Print a ROC curve object

This function prints a ROC curve, AUC or CI object and return it invisibly.

Keywords
utilities, print, nonparametric, univar, ROC
Usage
# S3 method for roc
print(x, digits=max(3, getOption("digits") - 3), call=TRUE, ...)
# S3 method for multiclass.roc
print(x, digits=max(3, getOption("digits") -
  3), call=TRUE, ...) 
# S3 method for mv.multiclass.roc
print(x, digits=max(3, getOption("digits") -
  3), call=TRUE, ...) 
# S3 method for smooth.roc
print(x, digits=max(3, getOption("digits") - 3),
call=TRUE, ...)
# S3 method for auc
print(x, digits=max(3, getOption("digits") - 3), ...)
# S3 method for multiclass.auc
print(x, digits=max(3, getOption("digits") - 3), ...)
# S3 method for ci.auc
print(x, digits=max(3, getOption("digits") - 3), ...)
# S3 method for ci.thresholds
print(x, digits=max(3, getOption("digits") - 3), ...)
# S3 method for ci.se
print(x, digits=max(3, getOption("digits") - 3), ...)
# S3 method for ci.sp
print(x, digits=max(3, getOption("digits") - 3), ...)
# S3 method for ci.coords
print(x, digits=max(3, getOption("digits") - 3), ...)
Arguments
x

a roc, auc or ci object, from the roc, auc or ci functions respectively.

call

if the call is printed.

digits

the number of significant figures to print. See signif for more details.

further arguments passed to or from other methods. In particular, print.roc calls print.auc and the print.ci variants internally, and a digits argument is propagated. Not used in print.auc and print.ci variants.

Value

These functions return the object they were passed invisibly.

See Also

roc, auc, ci, coords

Aliases
  • print.roc
  • print.smooth.roc
  • print.multiclass.roc
  • print.mv.multiclass.roc
  • print.ci.auc
  • print.ci.thresholds
  • print.ci.coords
  • print.ci.se
  • print.ci.sp
  • print.auc
  • print.multiclass.auc
Examples
# NOT RUN {
data(aSAH)

# Print a roc object:
rocobj <- roc(aSAH$outcome, aSAH$s100b)
print(rocobj)

# Print a smoothed roc object
print(smooth(rocobj))

# implicit printing
 roc(aSAH$outcome, aSAH$s100b)

# Print an auc and a ci object, from the ROC object or calling
# the dedicated function:
print(rocobj$auc)
print(ci(rocobj))
# }
Documentation reproduced from package pROC, version 1.16.2, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.