simulated_historical_forecasts.Rd 842 B

12345678910111213141516171819202122232425262728
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/diagnostics.R
  3. \name{simulated_historical_forecasts}
  4. \alias{simulated_historical_forecasts}
  5. \title{Simulated historical forecasts.}
  6. \usage{
  7. simulated_historical_forecasts(model, horizon, units, k, period = NULL)
  8. }
  9. \arguments{
  10. \item{model}{Fitted Prophet model.}
  11. \item{horizon}{Integer size of the horizon}
  12. \item{units}{String unit of the horizon, e.g., "days", "secs".}
  13. \item{k}{integer number of forecast points}
  14. \item{period}{Integer amount of time between cutoff dates. Same units as
  15. horizon. If not provided, will use 0.5 * horizon.}
  16. }
  17. \value{
  18. A dataframe with the forecast, actual value, and cutoff date.
  19. }
  20. \description{
  21. Make forecasts from k historical cutoff points, working backwards from
  22. (end - horizon) with a spacing of period between each cutoff.
  23. }