CTU-Bern / presize

Precision Based Sample Size Calculation
https://ctu-bern.github.io/presize/
GNU General Public License v3.0
15 stars 13 forks source link

sens/spec #11

Closed aghaynes closed 5 years ago

aghaynes commented 5 years ago
prec_spec(spec=c(0.6, 0.7, 0.8, 0.9), n=56, method="wilson") 

     precision for a Specificity with wilson confidence interval. 

  sens   sensadj  n conf.width conf.level       lwr       upr
1  0.6 0.5935806 56  0.2485780       0.95 0.4692916 0.7178696

Issues:

aghaynes commented 5 years ago

points from @alimacher

aghaynes commented 5 years ago

also from @alimacher My last point (It would be nice if the routine also runs if the total number (i.e. number of cases plus number of non-cases) and the prevalence (of cases) are given) is actually implemented in prec_sens_spec, however it only shows the width of the larger CI (of either sens or spec). It would be nice if it shows the CI for both, sens and spec anyway, and also the CI limits (not only the width). Unfortunately, results from prec_sens_spec do not match with prec_prop. Can you have a look at that?

aghaynes commented 5 years ago

prec_sens and prec_spec corrected (print method) prev and ntot added as arguments to prec_sens and prec_spec method from Budere (prec_sens_spec) removed PR #15