Skip to content
Prev 304691 / 398506 Next

predict.lm(...,type="terms") question

Thank you all. My muddle about predict.lm(..., type = "terms") was evident even in my first sentence of my original posting
the answer being that I cannot; that new response values, if included in newdata, will simply be ignored by predict.lm, as well they should.

As for the calibration issue, I am reviewing literature now as suggested.

Though predict.lm performed to spec (no bug), may I suggest a minor
change to ?predict.lm text?

Existing: 
 newdata  An optional data frame in which to 
          look for variables with  
          which to predict. If omitted, 
          the fitted values are used.
Proposed: 
 newdata  An optional data frame in which to 
          look for new values of terms with 
          which to predict. If omitted, the 
          fitted values are used.

-John Thaden, Ph.D.
 College Station, TX
--- On Sun, 9/2/12, peter dalgaard <pdalgd at gmail.com> wrote: