[Rd] stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
glnbrntt at gmail.com
Sun May 28 03:28:26 CEST 2017
Bug: stats::line() does not produce correct Tukey line when n mod 6 is 2 or
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.
Bug has been present across many versions.
The machine I just tried it on just now has R3.2.3:
system x86_64, mingw32
svn rev 69752
version.string R version 3.2.3 (2015-12-10)
nickname Wooden Christmas-Tree
[[alternative HTML version deleted]]
More information about the R-devel