I'm puzzled:
The behavior of invbinomial() has been changed from Stata 9 to Stata 10. The respective entry in whatsnew9to10 says:
implying that results from Stata 18 should be "better". Yet, cii still uses ancient results from before Stata 10. Why? And, should I or should I not use the modern, "improved" invbinomial()?
Edit: Title should say cii not cci (a related command) sorry.
Code:
. version 18 : display invbinomial(10,4,.025) .73762192 . version 18 : display invbinomial(10,4,1-.025) .18708603 . version 9 : display invbinomial(10,4,.025) .12155226 . version 9 : display invbinomial(10,4,1-.025) .73762192 . version 18 : cii proportion 10 4 Binomial exact Variable | Obs Proportion Std. err. [95% conf. interval] -------------+--------------------------------------------------------------- | 10 .4 .1549193 .1215523 .7376219 . version 9 : cii 10 4 Binomial exact Variable | Obs Mean Std. err. [95% conf. interval] -------------+--------------------------------------------------------------- | 10 .4 .1549193 .1215523 .7376219
[...]
d. invbinomial(n, k, p), [...] are more accurate for small values of p or for returned values close to zero.
d. invbinomial(n, k, p), [...] are more accurate for small values of p or for returned values close to zero.
Edit: Title should say cii not cci (a related command) sorry.
Comment