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

More inputs in coords #90

Open
xrobin opened this issue Jan 14, 2021 · 1 comment
Open

More inputs in coords #90

xrobin opened this issue Jan 14, 2021 · 1 comment

Comments

@xrobin
Copy link
Owner

xrobin commented Jan 14, 2021

Follow-up of #67.

ci.coords should be able to accept every coordinate that coords takes.

An application would be to add error bars on PR curves

    r <- roc(aSAH$outcome, aSAH$s100b)
    coords(r, x = seq(0, 1, .1), input="recall", ret="precision")
    ci <- ci.coords(r, x = seq(0, 1, .1), input = "recall", ret="precision")
    plot(ci)
@xrobin
Copy link
Owner Author

xrobin commented Jul 28, 2024

The feature is now available in the develop branch:

r <- roc(aSAH$outcome, aSAH$s100b)
co <- coords(r, x = "all", input="recall", ret=c("recall", "precision"))
ci <- ci.coords(r, x = seq(0, 1, .1), input="recall", ret="precision")
plot(co, type="l", ylim = c(0, 1))
plot(ci, type="shape")
plot(ci, type="bars")
lines(co)

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

No branches or pull requests

1 participant