search for: tp1017686p1017749

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

2010 Jan 19
4
Remove term from formula for predict.lm
Hi, probably just a quick question: can I somehow change the formula used with predict? E.g., the regression was run on "y ~ u + v + w" but for the prediction the term v should be removed from the formula contained in the regression object and only "y ~ u + w" be used. I could use model.matrix etc. to do the predictions but it would be very helpful to know a simpler way.