print: Print an ROC curve object

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3
4
5
6
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# 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)

nsROC documentation built on May 2, 2019, 2:31 p.m.