glance.fbl_bsts: Glance a bsts model

Description Usage Arguments Value Examples

View source: R/model.R

Description

A glance of a bsts provides the residual's standard deviation (sigma), and a tibble containing the selected changepoints with their trend adjustments.

Usage

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

Arguments

x

model or other R object to convert to single-row data frame

...

other arguments passed to methods

Value

A one row tibble summarising the model's fit.

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

glance(fit)
}

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