Usage
ROCplots(data, whichPlots = c("density", "raw", "ROC", "pv", "nnt", "nntRange"), NNTlower = 3, NNTupper = 10, N = 1000, prev = 0.2, diffInSD = 2, ...)
Arguments
data
Data frame with columns "class" (binary target variable) and "X" (predictor).
whichPlots
Which plots to do. Options are c("density", "raw", "ROC", "pv", "nnt")
NNTlower
Subjective input. If NNT < NNTlower, the decision is clearly to Treat.
NNTupper
Subjective input. If NNT > NNTupper, the decision is clearly to Wait.
N
For simulated data: sample size
prev
For simulated data: Prevalence
diffInSD
For simulated data: Difference: E(X | group=1) - E(X | group=0),measured in units of S.D (common to the 2 groups).
...
Extra arguments for a plot. Do not supply unless length(whichPlots)==1.