Learn R Programming

PRROC (version 1.3.1)

print.PRROC: printing PRROC objects

Description

Prints a PRROC object.

Usage

# S3 method for PRROC
print(x, ...)

Arguments

x

a PRROC object obtained from pr.curve or roc.curve

see print

Details

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.

See Also

pr.curve

roc.curve

Examples

Run this code
# NOT RUN {
# 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 );
# }

Run the code above in your browser using DataLab