njtierney / yahtsee

Yet Another Hierachical Time Series Extension and Expansion
http://yahtsee.njtierney.com/
Other
2 stars 1 forks source link

helper function to make prediction data + making predictions in general #13

Open njtierney opened 3 years ago

njtierney commented 3 years ago
# helper function to make prediction data (expand out to all cases)
df_pred <- prediction_data(
  df,
  date_range,
  countries
)

# post-hoc prediction function - with options for presenting the uncertainty
pred <- predict(m, df_pred, se.fit = TRUE)