[R] about the 95%CI around the median...

2008-08-04 Thread Fernando Marmolejo Ramos
Dear people I've learnt that by using the boxplot.stats command in the grDevices library I can get the 5-number summaries of a boxplot, plus other important information, like the confidence interval around the median. I'm interested in knowing the actual formula to used in that package to

Re: [R] about the 95%CI around the median...

2008-08-04 Thread Simon Blomberg
See ?fivenum in the stats package. If you just type stats::fivenum you will get the code. The crucial calculations are in the last few lines. Simon. On Mon, 2008-08-04 at 16:19 +0930, Fernando Marmolejo Ramos wrote: Dear people I've learnt that by using the boxplot.stats command in the

Re: [R] about the 95%CI around the median...

2008-08-04 Thread Gavin Simpson
On Mon, 2008-08-04 at 17:00 +1000, Simon Blomberg wrote: See ?fivenum in the stats package. If you just type stats::fivenum you will get the code. The crucial calculations are in the last few lines. That will only give the code to calculate the five number summary, but Fernando wants to

Re: [R] about the 95%CI around the median...

2008-08-04 Thread Frank E Harrell Jr
Gavin Simpson wrote: On Mon, 2008-08-04 at 17:00 +1000, Simon Blomberg wrote: See ?fivenum in the stats package. If you just type stats::fivenum you will get the code. The crucial calculations are in the last few lines. That will only give the code to calculate the five number summary, but

Re: [R] about the 95%CI around the median...

2008-08-04 Thread Rolf Turner
On 5/08/2008, at 1:31 AM, Frank E Harrell Jr wrote: snip I wonder why we don't just use the exact nonparametric confidence interval for the median, which is just as easy to compute. Also, it will be asymmetric if the data are skewed, as it should be. snip The