View source: R/methods-fable.R
| fitted.SMEAN | R Documentation |
Extract fitted values from a fitted SMEAN model.
## S3 method for class 'SMEAN'
fitted(object, ...)
object |
A fitted |
... |
Additional arguments. Currently not used. |
Fitted values.
Other SMEAN:
SMEAN(),
forecast.SMEAN(),
model_sum.SMEAN(),
residuals.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")))
fitted(model_frame)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.