main.m1391 chars37 lines
To use this function, call it with the desired values of sensitivity, specificity, and prior probability. For example:
main.m35 chars2 lines
This will return the probability of a negative test to be correct given a sensitivity of 0.9, specificity of 0.8, and prior probability of 0.1.
gistlibby LogSnag