Question: Predicting new values from a model.
15 months ago by
english.server • 160
english.server • 160 wrote:
Very basic question here (so that I'm afraid to ask). Suppose I have 50 pairs of data and I want to linearly model my data and predict a single new pair to my single input. What should I do?
a= matrix (rnorm(100),50) l= lm (a[,2]~a[,1]) predict (l, 2.1)
ADD COMMENT • link •