View source: R/methods-fable.R
| model_sum.MEDIAN | R Documentation |
Return a short model label for a fitted MEDIAN model.
## S3 method for class 'MEDIAN'
model_sum(x)
x |
A fitted |
A character string.
Other MEDIAN:
MEDIAN(),
fitted.MEDIAN(),
forecast.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()))
model_frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.