Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
RiwanODN1
Partner - Contributor
Partner - Contributor

Forecasting using R

Dear all,

I wrote a code doing forecasting using polynomial regression.

I would like to use it on qliksense.

I have done the installation needed, Rserve and the link is working.

I have already tried to translate it in qlik sense but I always get error.

Here is the working code in R :

plot(dataIMMO$Semaine,dataIMMO$`Production cumulée`,type="o",xlim=c(1,45),ylim=c(0,500))

#########################################################################
model=lm(`Production cumulée` ~ poly(Semaine,2),data=dataIMMO)
futur=predict.lm(model);
newSemaine=c(1:45);
help('predict')
futur<-predict(model,data.frame(Semaine=newSemaine),interval='prediction',level=0.99)
futur[,1]

 

could you please help me ???

 

Labels (3)
0 Replies