roc | R Documentation |
Calculate ROC curve statistics.
roc(response, group, levels, state)
response |
response variable for which thresholds will be calculated. |
group |
group variable. |
levels |
relevant levels of |
state |
state level of |
Returns a list with the following elements:
data |
|
rdf |
ROC dataframe. This is a |
auc |
Area under the ROC curve. |
response |
Response variable from input data. |
group |
Group variable from the input data. |
levels |
Used levels. |
state |
State level. |
Mathijs Deen
roc(QIDS$QIDS, QIDS$depression, c("No","Yes"), "Yes") |>
plot(ylim.3=c(0,.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.