Suppose there are 100 observations of a binary outcome variable, and that 35 of them are successes. To calculate the 95% conf interval for the number of successes I have used prop.test(35,100) in R (equivalent to binom.test), yielding 25.9-45.3 for the number of successes. This is more or less clear to me.
The difficulty comes when plotting the ratio of successes/no-successes. The observed ratio would be 35/65, and I'd like to add error bars indicating the 95% conf interval. What about calculating the 95% conf interval of these ratios as: 25.9/(100-25.9) - 45.3/(100-45.3).
This makes some sense to me. However, as the number of not-successes and successes depend on each other, I am not sure that approach is appropriate: 25.9/(100-25.9) would correspond to the lower 95% conf interval of successes divided by the upper 95% conf interval of not successes. It would be too conservative. May be it would be better as 25.9/65 - 45.3/65.
Thanks for any hint to solve this probably simple question. Apologies if it's not clear enough - I do not speak (nor think) statisticsh fluently.
Fede