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

Error in prec_meandiff()? #106

Closed clayford closed 1 year ago

clayford commented 1 year ago

The function prec_meandiff(), in differences.R, has an expression called "md" where s is calculated with denominator n1 + n2 + 2 (line 98). Shouldn't that be n1 + n2 - 2?

Thanks, Clay Ford

aghaynes commented 1 year ago

Thanks for highlighting this @clayford! We'll get on it and push a fix to CRAN ASAP

aghaynes commented 1 year ago

a new version was submitted to CRAN yesterday and binaries have started to appear there