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

auc drop absolutearea #5

Open
thorwb opened this issue Jan 30, 2020 · 1 comment
Open

auc drop absolutearea #5

thorwb opened this issue Jan 30, 2020 · 1 comment

Comments

@thorwb
Copy link

thorwb commented Jan 30, 2020

under the function auc, for the option absolutearea; in addition to true or false, would it be possible to have a third option (eg NULL) of not including negative values in the calculation of area under curve? ie only summing the positive area

The point would be to simplify calculating areas over/under thresholds.

@ekstroem
Copy link
Owner

ekstroem commented Jan 31, 2020

I'll think about what the best solution would be. In the meantime you can calculate the area of the positive values by computing the average of the full area and the normal AUC:

(MESS::auc(x, y, absolutearea = TRUE) + MESS::auc(x, y))/2

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

No branches or pull requests

2 participants