Skip to content

Commit 1ec80e0

Browse files
authored
Merge pull request #370 from PSIAIMS/DrLynTaylor-patch-3
Update ci_for_prop.qmd
2 parents 6416c30 + 32644ee commit 1ec80e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/ci_for_prop.qmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Code example for Blaker's exact method:\
8888
Code example for Clopper-pearson:\
8989
`binconf(x=<count of successes> , n=<Total>,method="exact",alpha=0.05)`
9090

91-
**The {RBesT} package** produces CIs using the Clopper-Pearson method. In this example (x=36 and n=154), the results match the cardx package. However, as described below, there are 2 cases where the results using RBesT package do not match cardx or Hmisc.
91+
**The {RBesT} package (Prior to Version 1.8-0)** produces CIs using the Clopper-Pearson method. In this example (x=36 and n=154), the results match the cardx package. However, as described below, there are 2 cases where the results using RBesT package do not match cardx or Hmisc.
9292

9393
1) x = 0 (0% responders), in which case the lower limit does not match.
9494
2) x = n (100% responders), in which case the upper limit does not match.
@@ -101,13 +101,12 @@ RBesT equations are:\
101101
pLow \<- qbeta(Low, r + (r == 0), n - r + 1)\
102102
pHigh \<- qbeta(High, r + 1, n - r + ((n - r) == 0))
103103

104-
If the equations were updated as follows then it would match Hmisc intervals:\
104+
In Version 1.8-0 onwards the equations were updated as follows, which then match the Hmisc intervals:\
105105
pLow \<- qbeta(Low, r, n - r + 1)\
106106
pHigh \<- qbeta(High, r + 1, n - r)
107107

108108
`BinaryExactCI(x=<count of successes> , n=<Total>,alpha=0.05)`
109109

110-
It is currently unclear why the RBesT script has the logical conditions (r==0) and ((n-r)==0. Therefore, we currently do not recommend using this package and suggest cardx or Hmisc is used instead. For updates about this, see the [issue](https://github.com/Novartis/RBesT/issues/21)
111110

112111
**The {ExactCIdiff} package** produces CIs for two dependent proportions (matched pairs) and two independent proportions (unmatched pairs).
113112

0 commit comments

Comments
 (0)