R: Glance a TSLM

glance.TSLM {fable} | R Documentation

## Glance a TSLM

### Description

Construct a single row summary of the TSLM model.

### Usage

    ## 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

### Details

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

### Value

A one row tibble summarising the model's fit.

### Examples

    as_tsibble(USAccDeaths) %>%
      model(lm = TSLM(log(value) ~ trend() + season())) %>%
      glance()

[Package fable version 0.3.1 Index]