fable (version 0.0.0.9100)

TSLM: Fit a linear model with time series components

Description

Fit a linear model with time series components

Usage

TSLM(formula, ...)

Arguments

formula

Model specification.

...

Additional arguments passed to lm

Examples

Run this code
# NOT RUN {
USAccDeaths %>% as_tsibble %>% model(TSLM(log(value) ~ trend() + season()))

library(tsibbledata)
olympic_running %>% 
  model(TSLM(Time ~ trend())) %>% 
  interpolate(olympic_running)
# }

Run the code above in your browser using DataCamp Workspace