simulated_historical_forecasts.Rd 927 B

12345678910111213141516171819202122232425262728293031
  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. Make forecasts from k historical cutoff dates, and compare forecast values
  7. to actual values.}
  8. \usage{
  9. simulated_historical_forecasts(model, horizon, units, k, period = NULL)
  10. }
  11. \arguments{
  12. \item{model}{Fitted Prophet model.}
  13. \item{horizon}{Integer size of the horizon}
  14. \item{units}{String unit of the horizon, e.g., "days", "secs".}
  15. \item{k}{integer number of forecast points}
  16. \item{period}{Integer amount of time between cutoff dates. Same units as
  17. horizon. If not provided, will use 0.5 * horizon.}
  18. }
  19. \value{
  20. A dataframe with the forecast, actual value, and cutoff date.
  21. }
  22. \description{
  23. Simulated historical forecasts.
  24. Make forecasts from k historical cutoff dates, and compare forecast values
  25. to actual values.
  26. }