[R] Combining two models into one

Carl Witthoft carl at witthoft.com
Sun Oct 20 18:21:23 CEST 2013

You created a bunch of 'x' items but call for "X" in your formula.   That's
part of it.  Next, you don't provide a "data=x" argument in your lm() call,
so it goes off and looks for various capital-X items (I suspect).

Hint:  start with a small, simple dataset and work with it until you know
how to use lm() and R's formula syntax.  Only then go on to your full-on

View this message in context: http://r.789695.n4.nabble.com/Combining-two-models-into-one-tp4678635p4678648.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list