我想Forecast
在我的fable
预测模型中使用包中实现的 theta 模型。这就是我想要做的。
library(forecast)
library(tidyverse)
library(fable)
library(tsibble)
library(fabletools)
tourism_aus <- tourism %>%
summarise(Trips = sum(Trips))
tourism_aus
fit <- tourism_aus %>%
model(
ets = ETS(Trips),
arima = ARIMA(Trips),
theta = forecast::thetaf(Trips)
) %>%
mutate(
average = (ets + arima + theta) / 3
)
fit
fit %>%
forecast(h = "2 years") %>%
autoplot(tourism_aus, level = 95, alpha = 0.5)
我收到此错误消息,
Failure in thetaf(Trips) : Objekt 'Trips' not found
有什么办法可以在里面使用theta方法fable
吗?