cutpointr icon indicating copy to clipboard operation
cutpointr copied to clipboard

An ambiguous region bounded by two cutpoint

Open jwang-lilly opened this issue 1 year ago • 1 comments

Hi Christian:

When developing a diagnostic test, it is common to have three regions: eg high confident negative, ambiguous, and high confident positive. Two cutpoints cp1 and cp2 would accomplish this. Cutpointr current only accepts one cp as: method = oc_manual, cutpoint = cp. I ended up preparing two data, data1 includes only the ambiguous middle and data2 without those falling in the middle region.

It would be great if cutpointr could support something like:

opt_cut <- cutpointr(data=suicide, x=age, class=suicide, direction = ">=", pos_class = "yes", neg_class = "no", method = oc_manual, cutpoint = c(30, 40))

jwang-lilly avatar Sep 05 '23 03:09 jwang-lilly