start_forecast_analysis_dashboard: Start a local forecast analysis dashboard

Description Usage Arguments Value Examples

View source: R/WRAPPER_start_forecast_analysis_dashboard.R

Description

start_forecast_analysis_dashboard is a wrapper function around several visualization functions to start a local Shiny dashboard to analyse the forecast data available in the main_forecasting_table.

Usage

1
start_forecast_analysis_dashboard(main_forecasting_table, test_mode = F)

Arguments

main_forecasting_table

A tibble containing several columns of data required for time series forecasting, which has been created using the create_main_forecasting_table function and which has been extended with the fc_models and fc_errors columns using the add_fc_models_to_main_forecasting_table function.

test_mode

Boolean, which is only set to TRUE when testing this function within the testthat framework for building the tsforecast package.

Value

Starts a local Shiny dashboard to analyse the forecasts.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
tstools::initialize_ts_forecast_data(
      data = dummy_gasprice,
      date_col = "year_month",
      col_of_interest = "gasprice",
      group_cols = c("state", "oil_company")
   ) %>%
   create_main_forecasting_table(
      min_train_periods = 180
   ) %>%
   add_fc_models_to_main_forecasting_table(
      periods_ahead = 12,
      fc_methods = c("basic", "linear")
   ) %>%
   start_forecast_analysis_dashboard()

ing-bank/tsforecast documentation built on Sept. 18, 2020, 9:40 a.m.