Description Usage Arguments Value Author(s) Examples
View source: R/classificationplots.R
Generate plots for classification of two groups given one continuous variable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
response |
continuous variable that is used as a classifier |
outcome |
grouping variable |
levels |
levels of the grouping variable that are to be classified (should be of length 2) |
cutoffs.1 |
cutoff values to be shown in the ROC curve |
cutoffs.2 |
cutoff values to be shown in the sensitivity/specificity plot |
cutoffs.3 |
cutoff values to be shown in the conditional distribution plot |
xlab.3 |
label for x axis in conditional distribution plot |
labels.3 |
legend labels for both groups in |
xlim.3 |
|
ylim.3 |
|
pos.legend.2 |
location for legend in sensitivity/specificity plot |
pos.legend.3 |
location for legend in conditional distribution plot |
classificationplots
returns three plots, and invisibly a dataframe containing sensitivities and specificities at all available threshold values.
Mathijs Deen
1 2 | library(pROC)
classificationplots(aSAH$s100b,aSAH$outcome,levels=c("Good","Poor"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.