pred_arima | R Documentation |
Creates a series of one-step ahead predictions for all years beyond the 5th year in the time series using the selected ARIMA model to be used in evaluating model performance in past seasons.
pred_arima(mod, x, xreg = NULL)
mod |
a class "Arima" object |
x |
the time series used to create the model |
xreg |
Values of covariate used to create the model |
a matrix where the first row is the prediction and the second row is the SE of the prediction.
dat6 <- prep_brood(deshka, 4:6)
ARIMA6_ar1 <- arima(dat6$age6_ln, order=c(1,0,0))
pred_arima(ARIMA6_ar1, x = dat6$age6_ln)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.