I have to find a 95% c.i. on the median and other percentiles. I don't know how to approach this. Any help appreciated. I mainly use R as a programming tool.
Tell me more
×
Cross Validated is a question and answer site for
statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.
|
Here is an illustration on a classical R dataset:
which gives a (73.5,77) confidence interval on the median. (Note: Corrected version, thanks to John. I used $10^3$ in the nrow earlier, which led to the confusion!) |
|||||||||||||||
|
|
Check out bootstrap resampling. Search R help for the boot function. Depending on your data with resampling you can estimate confidence intervals for just about anything. |
|||||||||||
|
|
Another approach is based on quantiles of the binomial distribution.
|
|||
|