search for: surajgupta

Displaying 1 result from an estimated 1 matches for "surajgupta".

2023 Feb 14
1
Documentation bug?
...which uses offset predict(mod, newdata=data.frame(off=c(3,2,5))) # returns c(3,2,5) which uses the new offset When looking at the history of R source code, this note seems to exist from R 1.0.0 while the source code of predict.lm already called eval(object$call$offset, newdata) https://github.com/SurajGupta/r-source/blob/1.0.0/src/library/base/R/lm.R https://github.com/SurajGupta/r-source/blob/1.0.0/src/library/base/man/lm.Rd Version 0.99.0 did not contain the note, but already had the call to eval(object$call$offset, newdata) https://github.com/SurajGupta/r-source/blob/0.99.0/src/library/base/man/lm...