print(t1) # Single product time series data
train<-filter(t1,Month1 < yearmonth("2018 Nov"))
test1<-filter(t1,Month1 >= yearmonth("2018 Nov"))
fit_train<- train %>%
model(
ets = ETS(Sales),
arima = ARIMA(Sales),
lm = TSLM(Sales ~ trend() + season())
)
fc<-fit_train %>%
forecast(h=3)
accuracy(fc,t1)
Get an error here on last line > accuracy(fc,test1)
Error: Could not find response variable(s) in the fable: Sales
Please note have updated packages tsibble and fable but the error still persists can you please help. If i print out the fc and test1 object they both have the variable Sales.