bouldr | R Documentation |
This function takes a data frame and a formula and runs nested ROCs as appropriate. Also required are the levels of the response variable and the direction of the cases (i.e., which level is the positive case). Providing an argument for test will change the test used to compare ROC curves.
bouldr(formula, data, levels, direction = "auto", test = "delong", ...)
formula |
A specification of the variables of form: response ~ predictor + (group1) + (group2) |
data |
A data frame containing the response and predictor vars |
levels |
The levels of the response variable as a character vector (e.g., C("yes","no")) |
direction |
Either "<" or ">", indicating which level is the positive case |
test |
Which test should be used to compare ROCs (optional). Default is delong |
... |
Additional arguments |
An object of class 'bouldr' containing ROCs and tests.
dd <- generate_data(10,Diagnosis = c("Depression","Anxiety","ADHD"),
Measure = c("A","B"), Informant = c("Self","Parent", "Teacher"))
single <- bouldr(dat = dd,
f = Outcome ~ Score,
test = 'delong',
levels = c('no','yes'),
direction = "<")
aucs(single)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.