You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/ci_for_prop.qmd
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ Code example for Blaker's exact method:\
88
88
Code example for Clopper-pearson:\
89
89
`binconf(x=<count of successes> , n=<Total>,method="exact",alpha=0.05)`
90
90
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.
92
92
93
93
1) x = 0 (0% responders), in which case the lower limit does not match.
94
94
2) x = n (100% responders), in which case the upper limit does not match.
@@ -101,13 +101,12 @@ RBesT equations are:\
101
101
pLow \<- qbeta(Low, r + (r == 0), n - r + 1)\
102
102
pHigh \<- qbeta(High, r + 1, n - r + ((n - r) == 0))
103
103
104
-
If the equations were updated as followsthen it would match Hmisc intervals:\
104
+
In Version 1.8-0 onwards the equations were updated as follows, which then match the Hmisc intervals:\
105
105
pLow \<- qbeta(Low, r, n - r + 1)\
106
106
pHigh \<- qbeta(High, r + 1, n - r)
107
107
108
108
`BinaryExactCI(x=<count of successes> , n=<Total>,alpha=0.05)`
109
109
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)
111
110
112
111
**The {ExactCIdiff} package** produces CIs for two dependent proportions (matched pairs) and two independent proportions (unmatched pairs).
0 commit comments