Returns the coefficients from the model in a tibble format.

# S3 method for AR
tidy(x, ...)

Arguments

x

An object to be converted into a tidy tibble::tibble().

...

Additional arguments to tidying method.

Value

The model's coefficients in a tibble.

Examples

as_tsibble(lh) %>%
  model(AR(value ~ order(3))) %>%
  tidy()
#> # A tibble: 4 × 6
#>   .model               term     estimate std.error statistic   p.value
#>   <chr>                <chr>       <dbl>     <dbl>     <dbl>     <dbl>
#> 1 AR(value ~ order(3)) constant   1.54       0.379     4.06  0.000201 
#> 2 AR(value ~ order(3)) ar1        0.658      0.146     4.50  0.0000486
#> 3 AR(value ~ order(3)) ar2       -0.0658     0.176    -0.374 0.710    
#> 4 AR(value ~ order(3)) ar3       -0.235      0.152    -1.54  0.130