Print method for optimal.cutpoints objects

Share:

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

1
2
## S3 method for class 'optimal.cutpoints'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

an object of class optimal.cutpoints as produced by optimal.cutpoints().

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)