print.optimal.cutpoints: Print method for optimal.cutpoints objects

Description Usage Arguments Author(s) See Also Examples

View source: R/print.optimal.cutpoints.R

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)  

Example output

Warning: Sensitivity CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Specificity CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Positive Predictive Value CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Negative Predictive Value CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Sensitivity CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Specificity CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Positive Predictive Value CI: "Exact" method may not be valid for some values (see Help Manual).

Warning: Negative Predictive Value CI: "Exact" method may not be valid for some values (see Help Manual).


Call:
optimal.cutpoints.default(X = "elas", status = "status", tag.healthy = 0, 
    methods = "Youden", data = elas, categorical.cov = "gender", 
    pop.prev = NULL, control = control.cutpoints(), ci.fit = TRUE, 
    conf.level = 0.95, trace = FALSE)

Optimal cutoffs - Female: 
   Youden
1 46.0000

Area under the ROC curve (AUC):  0.818 (0.684, 0.952) 

Optimal cutoffs - Male: 
   Youden
1 38.0000

Area under the ROC curve (AUC):  0.722 (0.612, 0.831) 

Call:
optimal.cutpoints.default(X = "elas", status = "status", tag.healthy = 0, 
    methods = "Youden", data = elas, categorical.cov = "gender", 
    pop.prev = NULL, control = control.cutpoints(), ci.fit = TRUE, 
    conf.level = 0.95, trace = FALSE)

Optimal cutoffs - Female: 
   Youden
1 46.0000

Area under the ROC curve (AUC):  0.818 (0.684, 0.952) 

Optimal cutoffs - Male: 
   Youden
1 38.0000

Area under the ROC curve (AUC):  0.722 (0.612, 0.831) 

OptimalCutpoints documentation built on Oct. 7, 2021, 5:09 p.m.