print {nsROC}R Documentation

Print an ROC curve object

Description

This function prints a 'groc', 'rocbands' or 'cdroc' object.

Usage

## S3 method for class 'groc'
print(x, ...)
## S3 method for class 'rocbands'
print(x, ...)
## S3 method for class 'cdroc'
print(x, ...)

Arguments

x

a 'groc', 'rocbands' or 'cdroc' object from the gROC, ROCbands or cdROC respectively.

...

further arguments to be passed to other methods. Ignored.

Value

These functions return information about the object they were passed.

See Also

gROC, ROCbands, cdROC

Examples

# Data generation
set.seed(123)
X <- c(rnorm(45), rnorm(30,2,1.5))
D <- c(rep(0,45), rep(1,30))

# Print a groc object
grocobj <- gROC(X,D)
print(grocobj)

# Print an rocbands object
grocobj <- ROCbands(grocobj)
print(grocobj)

# Print a cdroc object
set.seed(123)
stime <- rchisq(50,3)
status <- sample(c(rep(1,45), rep(0,5)))
marker <- max(stime) - stime + rnorm(50,0,2)
cdrocobj <- cdROC(stime, status, marker, 3, ci=TRUE)
print(cdrocobj)

[Package nsROC version 1.1 Index]