Skip to content

Period selection for quarterly data #28

@robjhyndman

Description

@robjhyndman

I was expecting each of these to be the same.

In particular, the second one seems to choose a period of 16 quarters, while the first seems to have an even longer period.

library(fable.prophet)
library(dplyr)

fit <- tsibble::as_tsibble(tsibbledata::aus_production) %>%
  model(
    auto = prophet(Cement),
    yearly = prophet(Cement ~ season("year")),
    period4 = prophet(Cement ~ season(period=4, order=2))
  )
fit %>% select(auto) %>% components() %>% autoplot()

fit %>% select(yearly) %>% components() %>% autoplot()

fit %>% select(period4) %>% components() %>% autoplot()

Created on 2020-12-08 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions