Default STL Function automation

" By default, the STL() function provides a convenient automated STL decomposition..."
How would you write the following code in order to make STL automated ?

us_retail_employment %>%
  model(
    STL(Employed ~ trend(window = 7) +
                   season(window = "periodic"),
    robust = TRUE)) %>%
  components() %>%
  autoplot()

thanks in advance! :grinning: :grinning:

Just leave out the right hand side of the formula to automate the procedure.

us_retail_employment %>%
  model(STL(Employed, robust = TRUE)) %>%
  components() %>%
  autoplot()
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.