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
model.




--
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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to