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