I have tried to calculate a 95% confidence interval for proportions on datasets with small and large sample sizes. I have been checking the values with two online calculators and keep getting confidence intervals with negative values or larger than 100% for the data with the small sample size.
Two examples from different datasets:
To calculate a 95% CI using
When n=29 and observed number = 27 CI= 83.88%; 102.32%
when n=61 and observed number = 2 CI= -1.2%; 7.7%
Could anyone suggest what I have done wrong to get these values?