Description Usage Arguments Value
This function does a few things worth noting. It 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_sarima function.
1 2 |
object |
a sarima fit of class "sarima_td", as returned by fit_sarima |
nsim |
number of sample trajectories to simulate |
seed |
either 'NULL' or an integer that will be used in a call to 'set.seed' before simulating the response vectors. If set, the value is saved as the "seed" attribute of the returned value. The default, 'Null', will not change the random generator state, and return '.Random.seed' as the "seed" attribute |
newdata |
numeric vector of new data to simulate forward from |
h |
number of time steps forwards to simulate |
an nsim by h matrix with simulated values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.