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
121 stars 31 forks source link

Allow to pass kappa to power.roc.curve.roc #82

Closed xrobin closed 3 years ago

xrobin commented 4 years ago

This follows Sample size calculation from two ROC curves with a different ratio of cases to controls than sample data on Stack Overflow.

In power.roc.curve.roc, kappa is silently ignored if two roc curves are passed. It is always calculated from the data itself. In addition if a single ROC curve is given, kappa is passed down to power.roc.test.numeric, but defaults to 1, instead of the ratio in the data, which is somewhat inconsistent.

Aim:

Additional note: