Statistics function incorrectly computing median

Ben Abbott bpabbott at mac.com
Mon Jan 14 18:29:51 CST 2008


On Jan 14, 2008, at 7:17 PM, John W. Eaton wrote:

> On 13-Jan-2008, Ben Abbott wrote:
>
> | I took another look and found a method that is more consistent with
> | the original algorithm. The original calculates the CDF from left to
> | right.  So I added an equivalent calculation form right to left, and
> | averaged the two results.
> |
> | I expect the result will be the same calculated by GNU's R.
>
> Why not look at the R code for this function and see what it is doing?
>
> jwe

I'd thought of that, but haven't yet had the time/motivation to dig in.

I'll begin by building R and giving it a try.

Ben




More information about the Bug-octave mailing list