View source: R/reconciliation.R
reconcile | R Documentation |
This function allows you to specify the method used to reconcile forecasts in accordance with its key structure.
reconcile(.data, ...)
## S3 method for class 'mdl_df'
reconcile(.data, ...)
.data |
A mable. |
... |
Reconciliation methods applied to model columns within |
library(fable)
lung_deaths_agg <- as_tsibble(cbind(mdeaths, fdeaths)) %>%
aggregate_key(key, value = sum(value))
lung_deaths_agg %>%
model(lm = TSLM(value ~ trend() + season())) %>%
reconcile(lm = min_trace(lm)) %>%
forecast()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.