search for: beer_fit_parabola

Displaying 1 result from an estimated 1 matches for "beer_fit_parabola".

2010 Jul 21
3
Help me with prediction in linear model
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 the below prediction predict(beer_fit_parabola,newdata=data.frame(t=seq(1995,1998,length=20),t2=seq(1995,1998,length=20)) #it is listing all 400+ entries ,but not 20 ahead prediction. Thanks In advanc...