search for: tpred_four

Displaying 2 results from an estimated 2 matches for "tpred_four".

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
2010 Jul 26
1
After writing data in MMF using SEXP structure, can i reference in R?
...eer_monthly)) sin.t<-sin(2*pi*time) cos.t<-cos(2*pi*time) beer_fit_fourier=lm(beer_monthly[, 1]~poly(time, 2)+sin.t+cos.t) #this is not working beer_fit_fourier=lm(beer_monthly[, 1]~time+time2+sin.t+cos.t) #it is working #prediction is not workinng tpred_four <- data.frame(time = seq(1995, 1998, length = 20)) predict(beer_fit_fourier, newdata = tpred_four) Is there any way to fit first fourier frequency , Please assist. Thanks in advance -- View this message in context: [73]http://r.789695.n4.nabble.com/Help-me-with...