davidtedfordholt / fable.bsts

Implementation of the bsts package for use with the fable framework
8 stars 3 forks source link

fable.bsts

lifecycle

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.

Completed

In Progress

Use

# 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()

Specials implemented: