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
I find precrec a great package for calculate ROC/PRC. Nevertheless, I need change the direction of the threshold evaluation. In other words, I want to compare methods than the positive values need to be higher than the threshold, and others than need to be lower than the threshold (for example a fisher's exact test). How can I do it using Precrec?
The text was updated successfully, but these errors were encountered:
I'm not sure if I understand your comment correctly or not, but you can explicitly specify the positive label with posclass from the mmdata function. You can also specify it in the evalmod function that passes unused parameters to mmdata internally. The example below shows two cases: sscurves with positive label of 1 (default) and sscurves2 with positive label of -1 (with posclass).
> library(precrec)
> data(P10N10)
>P10N10$labels
[1] 11-111111-1-1-1-11-11-11-1-1-1>sscurves<- evalmod(scores=P10N10$scores, labels=P10N10$labels)
>sscurves===AUCs===ModelnameDatasetIDCurvetypeAUC1m11ROC0.72000002m11PRC0.7397716===Inputdata===ModelnameDatasetID# of negatives # of positives1m111010>sscurves2<- evalmod(scores=P10N10$scores, labels=P10N10$labels, posclass=-1)
>sscurves2===AUCs===ModelnameDatasetIDCurvetypeAUC1m11ROC0.28000002m11PRC0.3695701===Inputdata===ModelnameDatasetID# of negatives # of positives1m111010
Hello!
I find precrec a great package for calculate ROC/PRC. Nevertheless, I need change the direction of the threshold evaluation. In other words, I want to compare methods than the positive values need to be higher than the threshold, and others than need to be lower than the threshold (for example a fisher's exact test). How can I do it using Precrec?
The text was updated successfully, but these errors were encountered: