tidy function

Extract model coefficients from a mable

Extract model coefficients from a mable

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

## S3 method for class 'mdl_df' tidy(x, ...) ## S3 method for class 'mdl_df' coef(object, ...) ## S3 method for class 'mdl_ts' tidy(x, ...) ## S3 method for class 'mdl_ts' coef(object, ...)

Arguments

  • x, object: A mable.
  • ...: Arguments for model methods.

Examples

library(fable) library(tsibbledata) olympic_running %>% model(lm = TSLM(log(Time) ~ trend())) %>% tidy()