Description Usage Arguments Author(s) See Also Examples
View source: R/print.optimal.cutpoints.R
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).
1 2 |
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. |
Monica Lopez-Raton and Maria Xose Rodriguez-Alvarez
optimal.cutpoints
, summary.optimal.cutpoints
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)
|
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.