For a binary variable, to get a confidence interval I include the "binomial" option:
ci variable, binomial
(variable is the name of a binary variable)
Trouble is, when I exectute:
prtest variable==X
(X is a number between 0 and 1)
the reported confidence interval doesn't match the interval obtained from "ci variable, binomial"
Rather, the reported confidence interval is the same as I get when I execute "ci viariable" -- that is, the ci command without the "binomial" option.
A particular binary variable I am working with has an upper bound confidence interval > 1 when I execute "ci" without the binomial option.
Any way to correct prtest so that the confidence intervals reported match those you get when you execute ci with the binomial option?
Is such a correction even needed?
Any help would be very much appreciated.
Ken K
Seton Hall
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/