-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci.coords returns a "ret" error for input = "threshold" #57
Comments
This is because you have an implied "threshold" in the default value of This will work right away, setting the return value without threshold:
The threshold itself won't vary. However in this case it should indeed be possible to return a (constant) threshold. I will investigate why it isn't the case. In addition the default value should probably be able to auto-detect whether 'threshold' can be computed. |
Thanks! Your solution works for me. I'm still a little confused, since a threshold is given by the user, what does it mean for the function to return a threshold, other than just show the input value? Shouldn't ret=c("se", "sp") be the default if the input is a threshold? |
I'm not sure if it should be the default. It's useful to ping it back in the case where many thresholds are given as input. |
Fixed. Threshold is kept by default whenever possible, and removed from the return values otherwise. |
Describe the bug
When trying to use ci.coords with
input="threshold"
I get an error regardingret="threshold"
To Reproduce
Gives the error
Expected behavior
A confidence interval for sensitivity and specificity at the chosen threshold.
Additional context
I can see why choosing a return threshold generates an error. But this is an input threshold.
The text was updated successfully, but these errors were encountered: