Skip to content
Prev 10148 / 63424 Next

unexpected behaviour in lm() (PR#3657)

ottk@bms.com writes:
Unexpected: yes, bug: no.

Thing is that the lm logic removes the resonse from the set of
predictors. This is to support stuff like "y ~ .", I believe.

You get the same effect from
Call:
lm(formula = x ~ x)

Coefficients:
(Intercept)
        5.5