print.optimal.cutpoints {OptimalCutpoints} | R Documentation |
Print method for optimal.cutpoints objects
Description
Default print method for objects fitted with optimal.cutpoints()
function. A short summary is printed with: the call to the optimal.cutpoints()
function; the optimal cutpoint(s) and the value of the Area Under the ROC Curve (AUC) for each categorical covariate level
(if the categorical.cov
argument of the optimal.cutpoints
function is not NULL).
Usage
## S3 method for class 'optimal.cutpoints'
print(x, digits = max(3, getOption("digits") - 3), ...)
Arguments
x |
an object of class |
digits |
controls number of digits printed in the output. |
... |
further arguments passed to or from other methods. None are used in this method. |
Author(s)
Monica Lopez-Raton and Maria Xose Rodriguez-Alvarez
See Also
optimal.cutpoints
, summary.optimal.cutpoints
Examples
library(OptimalCutpoints)
data(elas)
###########################################################
# Youden Index Method ("Youden"): Covariate gender
###########################################################
optimal.cutpoint.Youden<-optimal.cutpoints(X = "elas", status = "status", tag.healthy = 0,
methods = "Youden", data = elas, pop.prev = NULL, categorical.cov = "gender",
control = control.cutpoints(), ci.fit = TRUE, conf.level = 0.95, trace = FALSE)
optimal.cutpoint.Youden
print(optimal.cutpoint.Youden)
[Package OptimalCutpoints version 1.1-5 Index]