knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package provides a tidy R interface to the bsts forecasting procedure using fable. This package makes use of the bsts package for R.
While the BSTS()
function works in the fable::model()
framework, not all functionality from the package has been implemented.
# library(tidyverse) # # source("data-raw/lax_passengers.R") # data <- lax_passengers %>% # mutate(date = yearmonth(date)) # # data %>% # fabletools::model( # bsts = BSTS(passengers ~ intercept() + ar() + seasonal("1 day")) # ) %>% # fabletools::forecast(h = 48) %>% # autoplot()
intercept()
- static intercept modelsar()
- autoregressive modelslevel()
- local and shared level modelstrend()
- local linear, semilocal linear and Student local linear modelsseasonal()
- seasonal regression modelstrig()
- trigonometric seasonality modelsAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.