View source: R/forecasting-random-walk.R
randomwalk_ts
fits a random walk model using
rwf
randomwalk_one_step
uses rwf
to fit a
random walk model (with or without drift) and make a single one-step
forecast.
1 2 3 | randomwalk_ts(timeseries, num_ahead = 5, level = 95, drift = FALSE)
randomwalk_one_step(timeseries, level = 95, drift = FALSE)
|
timeseries |
the time series to forecast |
num_ahead |
the number of points at the end of the time series to forecast |
level |
Confidence levels for prediction intervals. |
drift |
Logical flag. If TRUE, fits a random walk with drift model. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.