Description Usage Arguments Value See Also Examples
This function prints a 'groc', 'rocbands' or 'cdroc' object.
1 2 3 4 5 6 |
x |
a 'groc', 'rocbands' or 'cdroc' object from the |
... |
further arguments to be passed to other methods. Ignored. |
These functions return information about the object they were passed.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.