Re: [R] Help me with prediction in linear model

2010-07-21 Thread Dennis Murphy
Hi: On Wed, Jul 21, 2010 at 8:46 AM, vijaysheegi wrote: > > Hi R-community, > I have the code as follows,i Fitted model as follows > lbeer<-log(beer_monthly) > t<-seq(1956,1995.2,length=length(beer_monthly)) #beer_monthly contains 400+ > entries > This is unnecessary: > t2=t^2 > beer_fit_parab

[R] Help me with prediction in linear model

2010-07-21 Thread vijaysheegi
Hi R-community, I have the code as follows,i Fitted model as follows lbeer<-log(beer_monthly) t<-seq(1956,1995.2,length=length(beer_monthly)) #beer_monthly contains 400+ entries t2=t^2 beer_fit_parabola=lm(lbeer~t+t2) Below is not working for me. Please help me in preparing the new data set for t