View source: R/hierarchical-reconciliation.R

Function to reconcile time-series forecasts. Returns reconciled forecasts using four methods: optimal (summing matrix), mean, median and residual variance.

1 2 3 4 | ```
hts_reconciliation(fcsts, S, W_mean, W_median, W_res_var,
prediction_col = "Prediction", variable_cols = c("Simulation", "ts",
"Date", "Hour"), zone_cols = c("TOTAL", "ME", "NH", "VT", "CT", "RI",
"MASS", "SEMASS", "WCMASS", "NEMASSBOST"))
``` |

`fcsts` |
forecast data frame. |

`S` |
summing matrix. |

`variable_cols` |
variable column. Columns that provide a unique identifier for each time-series forecast. |

`zone_cols` |
zones of the hierarchy. Need to be in the same order as for the summing matrix. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.