Entering edit mode
6.5 years ago
english.server
▴
300
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)
doesn't work.
Thank you indeed very much.