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.
It would be nice if there would be roc/auc-methods for objects of class
lm.The methods could have signature:
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.