I have what I feel is a relatively simple question, but it seems to have no easily-accessible answer. I'm trying to find how to calculate the 95% confidence interval for data that is continuous, but constrained between 0 and 1. Full disclosure - my data are proportions and many of the values are 0s or 1s. This means I can't simply use quantiles, because the 2.5% quantile is always 0 and the 97.5% quantile is always 1.
I realize many functions in R calculate 95% CIs for proportions, but these functions all seem to rely on data relating to the number of successes. My data do not include "successes".
In my study, I compared the relative abundance of one species to another species in a given plot of land. I did this at multiple locations. So each row of my data frame (shown below) corresponds to a location at which I did this assessment. Column 1 is the proportion of species 1, and column 2 is the proportion of species 2 - these values sum to 1 for each row.
prop.species.1 prop.species.2
1 1.0000000 0.0000000
2 1.0000000 0.0000000
3 1.0000000 0.0000000
4 0.0000000 1.0000000
5 0.6363636 0.3636364
6 1.0000000 0.0000000
7 1.0000000 0.0000000
8 1.0000000 0.0000000
9 0.5555556 0.4444444
10 1.0000000 0.0000000
.. ... ...
The data frame is 1000 rows long. Does anyone know how I can calculate the 95% CIs for each column?