tidy.fbl_bsts: Extract estimated coefficients from a bsts model

Description Usage Arguments Value Examples

View source: R/model.R

Description

Extract estimated coefficients from a bsts model

Usage

1
2
## S3 method for class 'fbl_bsts'
tidy(x, ...)

Arguments

x

An object to be converted into a tidy tibble::tibble().

...

Additional arguments to tidying method.

Value

A tibble containing the model's estimated parameters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (requireNamespace("tsibbledata")) {
library(tsibble)
library(dplyr)
fit <- tsibbledata::aus_production %>%
  model(
    bsts = BSTS(Beer ~ season())
  )

tidy(fit) # coef(fit) or coefficients(fit) can also be used
}

davidtedfordholt/fable.bsts documentation built on Sept. 15, 2020, 11:38 a.m.