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