[R] Linear Model Prediction

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Jul 24 20:26:26 CEST 2012

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

More information about the R-help mailing list