Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Sample size calculation with wrong zalpha? #50
I tried to reproduce the sample size calculations in Table 4 of the Obuchowski paper (2004) for a single ROC curve. For a significance level of 0.05, an expected AUC of 0.7, a desired power of 0.9 and kappa = 1, the sample size calculation should result in 33 patients for each of the two groups.
Maybe the problem is that inside the function, the z-value for the significance level is calculated by
Thank you very much for your work and for maintaining this great package!
Thanks for your report!
The Obuchowski (2004) paper describes one-sided tests, in which case pROC returns the expected results:
However you are right this is looking weird. I will look into it.
Fixed in the 2 ROC curves and list of parameters cases too. It was a good occasion to cleanup the code at the same time.
Again, no difference in the output. But clearer, and more appropriate use of the distributions.
Thanks again for reporting this inconsistency and helping make pROC better.