Construct a single row summary of the lag walk model. Contains the variance of residuals (sigma2).

# S3 method for class 'RW'
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

as_tsibble(Nile) %>%
  model(NAIVE(value)) %>%
  glance()
#> # A tibble: 1 × 2
#>   .model       sigma2
#>   <chr>         <dbl>
#> 1 NAIVE(value) 28268.

library(tsibbledata)
aus_production %>%
  model(snaive = SNAIVE(Beer ~ lag("year"))) %>%
  glance()
#> # A tibble: 1 × 2
#>   .model sigma2
#>   <chr>   <dbl>
#> 1 snaive   366.