Description Usage Arguments Value Examples
Extract estimated coefficients from a bsts model
1 2  | ## S3 method for class 'fbl_bsts'
tidy(x, ...)
 | 
x | 
 An object to be converted into a tidy   | 
... | 
 Additional arguments to tidying method.  | 
A tibble containing the model's estimated parameters.
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
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.