Skip to content
Prev 53595 / 63424 Next

stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3

We have a fair amount of cool westerly wind up here that I could transfer to you via  WWTP (Wind and Weather Transport Protocol). If you open up a sufficiently large pipe, that is. 

Anyways, in the past we have tried to follow Tukey's instructions on details like the definition of the "hinges" on boxplots, so presumably we should try and do likewise for this case. 

I suspect that Tukey would say "divide the data into three roughly equal-sized groups" or some such. The obvious thing to do would be to allocate N %/% 3 to each group and then the N %% 3 remaining symmetrically and as evenly as possible, which in my book would rather be (1,0,1) than (0, 2, 0) for the case N %% 3 == 2. If  N %% 3 == 1, there is no alternative to (0, 1, 0) by this logic.

  
    

Thread (24 messages)

GlenB stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 27 Joris Meys stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 28 Duncan Murdoch stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 28 GlenB stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 28 GlenB stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 28 Peter Dalgaard stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 29 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 29 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 29 GlenB stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 29 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 29 Martin Maechler stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 30 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 30 Martin Maechler stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 30 GlenB stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 30 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Joris Meys stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Joris Meys stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Joris Meys stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Peter Dalgaard stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Joris Meys stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Serguei Sokol stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31 Martin Maechler stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 May 31