assemble_data_plot_predictions: assemble_data_plot_predictions

Description Usage Arguments Value

View source: R/predict_data.R

Description

Clean up and format the data

Usage

1
2
3
4
5
6
7
8
assemble_data_plot_predictions(
  predictions,
  ts_data,
  days_predict,
  model,
  training_window,
  confidence
)

Arguments

predictions

(list): the output of get_predictions()

ts_data

(dataframe): an events dataframe

days_predict

(numeric): How many days in the future to predict

model

(list): the output of get_best_model()

confidence

(numeric): Which level of confidence we want to keep. One of 80, 95 or NULL. If NULL, we do not keep any confidence

train_window

(numeric): the number of days prior to the last

Value

a list with the predictions and the confidence intervals at 80


theasjblog/covid19_package documentation built on May 2, 2021, 8:11 p.m.