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))
Run the code above in your browser using DataLab