ROCcoords {bimixt} | R Documentation |
Takes in a threshold, specificity, or sensitivity value and calculates the other two values.
ROCcoords(model, direction = "auto", x, input)
model |
an object of type model from |
direction |
same as |
x |
The numeric value for the input. If input is "sensitivity" or "specificity" x must be between 0 and 1. |
input |
A string that defines what the input type is. Valid inputs are "sensitivity", "specificity", or "threshold". These can be shortened to "sens", "spec", "thr" or "se", "sp", "t". |
Returns a numeric vector with the values of threshold, specificity, and sensitivity.
Michelle Winerip, Garrick Wallstrom, Joshua LaBaer
cases=rmix(50,10,1.2,20,1.3,.7) controls=rmix(50,9,1.1,17,1.3,.95) model=bimixt.model(cases,controls,"4c") ROCcoords(model,x=.95,input="sens") ROCcoords(model,x=.95,input="spec") ROCcoords(model,x=9,input="thr")