View source: R/methods-fable.R
| residuals.SMEAN | R Documentation |
Extract residuals from a fitted SMEAN model.
## S3 method for class 'SMEAN'
residuals(object, ...)
object |
A fitted |
... |
Additional arguments. Currently not used. |
Residuals.
Other SMEAN:
SMEAN(),
fitted.SMEAN(),
forecast.SMEAN(),
model_sum.SMEAN()
library(dplyr)
library(tsibble)
library(fabletools)
train_frame <- M4_monthly_data |>
filter(series == first(series)) |>
as_tsibble(index = index)
model_frame <- train_frame |>
model("SMEAN" = SMEAN(value ~ lag("year")))
residuals(model_frame)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.