I am having trouble specifying seasonality in an ARIMA model of the fable package. I have a dataset with daily data and want to take into account annual seasonality. I make use of the Daily Electricity Price and Demand Data which can be found on Kaggle.
df <- read.csv("complete_dataset.csv")
df <- as_tibble(df)
df_t <- df %>% mutate(date = as_date(date),
school_day = if_else(school_day == "Y", 1, 0),
holiday = if_else(holiday == "Y", 1, 0))
df_ts <- as_tsibble(df_t, index = date)
arima_model2 <- df_ts %>% model(ARIMA(demand ~ max_temperature + PDQ(period=365.25)))
report(arima_model2)
## Warning: 1 error encountered for ARIMA(demand ~ max_temperature + PDQ(period = 365.25))
## [1] not all series have the same phase
## Series: demand
## Model: NULL model
## NULL model
I've also tried period = "1 year"
, but that gives the same error.
Is there a way to fix this? Or should this be specified in another way?
Thanks!