xrobin / pROC

Display and analyze ROC curves in R and S+
https://cran.r-project.org/web/packages/pROC/
GNU General Public License v3.0
118 stars 31 forks source link

Add roc/auc methods for lm/glm-etc. methods. #85

Open jarauh opened 3 years ago

jarauh commented 3 years ago

It would be nice if there would be roc/auc-methods for objects of class lm.

The methods could have signature:

roc.lm <- function(model, newdata = NULL, ...)

The function should run predict(model, newdata = newdata, ...) to obtain predictions, extract the observed outcome from either newdata or the model and then compute the roc or auc.

xrobin commented 3 years ago

Thanks for your suggestion!

I'm not a big fan, for a few reasons:

Unless you have a strong argument in favor of this proposal, I'd close it as a wontfix.

jarauh commented 3 years ago

Thanks for your quick answer.