ron4
June 19, 2020, 3:27am
1
I have a working Predict function.Now it needs a much higher accuracy as the prediction is not accurate enough.Its not even close.
Is there a package or code anyone knows how to increase accuracy of the below predict function?
reprex:
# import data
setwd("C:/Users/jenny/Desktop/R Studio")
sales <- read_excel("C:file)")
sales <- ts(sales, frequency=3, start=c(2019,1))
predict(ts(sales))
Created on 2020-06-18 by the reprex package (v0.3.0)
The reprex
isn't of any use as it is reading from the file on your computer.
It looks like you are trying to predict the next few values of a time series though. Try the fable
package.
ron4
June 20, 2020, 5:25pm
3
Hi, i will test it for sure.Thank you William.
ron4
June 21, 2020, 10:27pm
4
Hi,i tried to test it,but i cant get the code correct.
Does it show a prediction with Alpha, Beta and Gamma?
Cheers
It would depend on the model you are using. There is an example with an ETS model with the alpha, beta and gamma smoothing parameters:
https://fable.tidyverts.org/articles/fable.html
system
Closed
July 13, 2020, 6:46am
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.