On 24.07.2012 20:20, cm wrote:
I have data X and Y, and I want to predict what the very next point would be
based off the model. This is what I have:
model=lm(x~y)
Hmmm, are you sure about the above code?
I think I want to use the predict function, but I'm not exactly sure what to
do.
Yes, use predict().
Is this homework?
Uwe Ligges
Thank you!
--
View this message in context:
http://r.789695.n4.nabble.com/Linear-Model-Prediction-tp4637644.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.
______________________________________________
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.