You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that more than just a generic function is needed. For instance, precrec has an auc function but pROC methods get masked anyway:
library(pROC)
data(aSAH)
library(precrec)
auc(roc(aSAH$outcome, aSAH$s100b))
Error in auc.default(roc(aSAH$outcome, aSAH$s100b)) :
An object of unknown class is specified
3: stop("An object of unknown class is specified")
2: auc.default(roc(aSAH$outcome, aSAH$s100b))
1: auc(roc(aSAH$outcome, aSAH$s100b))
For some reason the methods are gone. Maybe exporting auc is resetting them?
methods("auc")
[1] auc.aucs* auc.default*
If so listing generics vs non generics is irrelevant.
https://github.com/xrobin/pROC/wiki/FAQ---Frequently-asked-questions#the-functions-are-giving-me-weird-error-messages-i-dont-understand
roc
or onlyauc
functionauc
functionroc
orauc
The text was updated successfully, but these errors were encountered: