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

2017-05-30 Thread GlenB
Martin Maechler says in reply to Sergueï Sokol > Note the 'Subject' you've chosen for this thread, "... does not produce the correct Tukey line", The choice of title was mine not Serguei's; I posted the original message where the error was pointed out I agree with Martin's assessment that the c

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

2017-05-29 Thread GlenB
d generate the line of identity for the (1:9, 1:9) >>> case, so I do suspect that we have a genuine scr*wup in line(). >>> >>> Notice, incidentally, that >>> >>> line(1:9+rnorm(9,,1e-1),1:9+rnorm(9,,1e-1)) >>>> >>> Call: >

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

2017-05-28 Thread GlenB
y a search on *tukey three group line* and you'll get plenty of hits) is pretty much a giveaway. On Mon, May 29, 2017 at 2:19 PM, GlenB wrote: > Tukey divides the points into three groups, not the x and y values > separately. > > I'll try to get hold of the book for a direct

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

2017-05-28 Thread GlenB
Tukey divides the points into three groups, not the x and y values separately. I'll try to get hold of the book for a direct quote, might take a couple of days. On Mon, May 29, 2017 at 8:40 AM, Duncan Murdoch wrote: > On 27/05/2017 9:28 PM, GlenB wrote: > >> Bug: stats

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

2017-05-28 Thread GlenB
Bug: stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3 Example: line(1:9,1:9) should have intercept 0 and slope 1 but it gives intercept -1 and slope 1.2 Trying line(1:i,1:i) across a range of i makes it clear there's a cycle of length 6, with four of every six correct. Bu