Say I have a frequency density data, for example
1,2,3,3,4,5,5,6,6,6,7,8,8,8,9,10 and then I compute the frequency of each number. Than I would like to know within what range 95%, 50%, and 10% of the data falls into. I imagine if I calculate 10% it will give me multiple ranges. What are these statistics called and how do I calculate them?
Basically I would like to say that 95% of the data is within 5-7 or that 50% is within 3-9. I guess that the distribution of the data would change how to go about this. What I have done so far is to use the quantile function in r and specify .025 and .975, and .25/.75 (I realize these are quartiles).