Construct a single row summary of the TSLM model.

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

Details

Contains the R squared (r_squared), variance of residuals (sigma2), the log-likelihood (log_lik), and information criterion (AIC, AICc, BIC).

Examples

as_tsibble(USAccDeaths) %>%
  model(lm = TSLM(log(value) ~ trend() + season())) %>%
  glance()
#> # A tibble: 1 × 15
#>   .model r_squared adj_r_squared  sigma2 statistic  p_value    df log_lik   AIC
#>   <chr>      <dbl>         <dbl>   <dbl>     <dbl>    <dbl> <int>   <dbl> <dbl>
#> 1 lm         0.825         0.789 0.00248      23.1 6.02e-18    13    121. -418.
#> # ℹ 6 more variables: AICc <dbl>, BIC <dbl>, CV <dbl>, deviance <dbl>,
#> #   df.residual <int>, rank <int>