Learn R Programming

fabletools (version 0.5.0)

tidy.mdl_df: Extract model coefficients from a mable

Description

This function will obtain the coefficients (and associated statistics) for each model in the mable.

Usage

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

# S3 method for mdl_df coef(object, ...)

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

# S3 method for mdl_ts coef(object, ...)

Arguments

x, object

A mable.

...

Arguments for model methods.

Examples

Run this code
if (FALSE) { # requireNamespace("fable", quietly = TRUE)
library(fable)
library(tsibbledata)

olympic_running %>%
  model(lm = TSLM(log(Time) ~ trend())) %>% 
  tidy()
}

Run the code above in your browser using DataLab