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 while (cut_points[j] > t) { : missing value where TRUE/FALSE needed #60

Closed
xrobin opened this issue Jul 18, 2019 · 0 comments
Closed
Labels

Comments

@xrobin
Copy link
Owner

@xrobin xrobin commented Jul 18, 2019

Data <- structure(list(Outcome = c(1L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L), Value = c(72L, 65L, 271L, 73L, 87L, 114L, 111L, 47L, 88L, 44L, 121L, 207L, 33L, 138L, 284L, 62L, 120L, 116L, 202L, 172L, 117L, 69L, 102L, 150L, 131L, 77L, 124L, 46L, 579L, 117L, 96L, 83L, 102L)), class = "data.frame", row.names = c(NA, -33L))
ROC <- roc(Outcome~Value, data=Data, ci=TRUE, direction="auto")
coords(ROC, x=-Inf, transpose = FALSE)

Shows the following error message:

Error in while (cut_points[j] > t) { : 
  missing value where TRUE/FALSE needed
3: roc.utils.thr.idx(roc, x) at coords.R#269
2: coords.roc(ROC, x = -Inf, transpose = FALSE) at coords.R#20
1: coords(ROC, x = -Inf, transpose = FALSE)

This might be related with the -Inf threshold and direction = ">" of the curve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant