Skip to content
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

Error in apply(sapply(perfs, c), 1, quantile, probs = c(0 + (1 - conf.level)/2, : dim(X) must have a positive length #65

Closed
xrobin opened this issue Nov 19, 2019 · 0 comments
Labels
bug

Comments

@xrobin
Copy link
Owner

@xrobin xrobin commented Nov 19, 2019

For some reason on this specific dataset the CI of precision with a threshold of 1 is NA.

When calculating the ci.coords with several thresholds, the following error occurs:

> load("roc_error.RData")
> ci.coords(pROC_obj_with_ci, x=c(.5, 1), ret="precision", transpose=TRUE)
  |======================================================================| 100%
Error in apply(sapply(perfs, c), 1, quantile, probs = c(0 + (1 - conf.level)/2,  : 
  dim(X) must have a positive length
In addition: Warning message:
In ci.coords.roc(pROC_obj_with_ci, x = c(0.5, 1), ret = "precision",  :
  NA value(s) produced during bootstrap were ignored.
@xrobin xrobin added the bug label Nov 19, 2019
@xrobin xrobin closed this in de82fc6 Nov 21, 2019
xrobin added a commit that referenced this issue Dec 28, 2019
…smooth.roc too (see issue #65)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.