wroc.plot | R Documentation |
Plot the ROC curve of a logistic regression model considering sampling weights with complex survey data.
wroc.plot(
x,
print.auc = TRUE,
print.cutoff = FALSE,
col.cutoff = "red",
cex.text = 0.75,
round.digits = 4
)
x |
An object of class |
print.auc |
A logical value. If |
print.cutoff |
A logical value. If |
col.cutoff |
A character string indicating the color in which the cut-off point is depicted. The default option is |
cex.text |
A numeric value indicating the size with which the information of the AUCw and optimal cut-off point is printed. The default option is |
round.digits |
A numeric value indicating the number of digits that will be employed when printing the information about the AUCw and optimal cut-off point. The default option is |
More information is given in the documentation of the wroc()
, wauc{}
and wocp()
functions.
a graph
data(example_data_wroc)
mycurve <- wroc(response.var = "y", phat.var = "phat", weights.var = "weights",
data = example_data_wroc,
tag.event = 1, tag.nonevent = 0,
cutoff.method = "Youden")
wroc.plot(x = mycurve, print.auc = TRUE, print.cutoff = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.