print.PRROC | R Documentation |
Prints a PRROC object.
## S3 method for class 'PRROC'
print(x, ...)
x |
a PRROC object obtained from |
... |
see |
The print method for PRROC objects prints the area under the (PR or ROC) curve, and (if curve=TRUE
in pr.curve
or roc.curve
) the range of classification scores. If also max.compute=TRUE
, min.compute=TRUE
, and/or rand.compute=TRUE
when the PRROC object has been computes using pr.curve
or roc.curve
, a relative area under curve is reported, i.e., the minimal AUC subtracted from the original AUC and the result divided by the difference of maximum and minimum AUC.
Jan Grau and Jens Keilwagen
pr.curve
roc.curve
# create artificial scores as random numbers
x <- rnorm( 1000 );
y <- rnorm( 1000, -1 );
# compute area under PR curve
pr <- pr.curve( x, y );
print( pr );
# compute area under ROC curve
roc <- roc.curve( x, y );
print( roc );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.