[R] simple predict question

From: <sms13+_at_pitt.edu>
Date: Wed 01 Jun 2005 - 06:47:53 EST

Excuse the simple question...
I'm not sure what I'm doing wrong with predict, but let me use this example: Suppose I do:

Suppose I want to generate the linearly-interpolated y-values between the point (0,0) and (0,20) at every unit interval. I thought I just do:
predict(lm1, data.frame(seq(0,10,1))) to get 0,2,4,6...,18,20, but instead
I just get:
1 2
0 20

Any suggestions?


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 01 06:50:02 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:17 EST