predict.simple_ts | R Documentation |
This function linearly interpolates missing values on the interior of the time series, which is necessary for some model fits with moving average components. It also handles transformations and possible seasonal differencing that may have been done in the fit_simple_ts function.
## S3 method for class 'simple_ts'
predict(simple_ts_fit, newdata = NULL, horizon = 1, nsim = 1, seed = NULL, ...)
newdata |
numeric vector of new data to simulate forward from |
horizon |
number of time steps forwards to simulate |
nsim |
number of sample trajectories to simulate |
seed |
either |
... |
other arguments passed on to model-specific predict methods |
object |
a model fit of class "simple_ts", as returned by fit_simple_ts |
an nsim by horizon matrix with simulated values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.