print.cROC: Print method for 'cROC' objects

View source: R/print.cROC.R

print.cROCR Documentation

Print method for cROC objects

Description

Default print method for objects fitted with cROC.bnp(), cROC.sp() and cROC.kernel() functions.

Usage

## S3 method for class 'cROC'
print(x, ...)

Arguments

x

An object of class cROC as produced by cROC.bnp(), cROC.sp() or cROC.kernel().

...

Further arguments passed to or from other methods. Not yet implemented.

Details

A short summary is printed.

See Also

cROC.bnp, cROC.sp or cROC.kernel.

Examples

library(ROCnReg)
data(psa)
# Select the last measurement
newpsa <- psa[!duplicated(psa$id, fromLast = TRUE),]

# Log-transform the biomarker
newpsa$l_marker1 <- log(newpsa$marker1)

cROC_bnp <- cROC.bnp(formula.h = l_marker1 ~ f(age, K = 0),
               formula.d = l_marker1 ~ f(age, K = 0),
               group = "status", 
               tag.h = 0,
               data = newpsa,
               standardise = TRUE, 
               p = seq(0, 1, len = 101),
               compute.lpml = TRUE, 
               compute.WAIC = TRUE,
               compute.DIC = TRUE, 
               pauc = pauccontrol(compute = TRUE, value = 0.5, focus = "FPF"),
               density = densitycontrol(compute = TRUE, grid.h = NA, grid.d = NA),
               mcmc = mcmccontrol(nsave = 500, nburn = 100, nskip = 1))

cROC_bnp



ROCnReg documentation built on March 31, 2023, 5:42 p.m.