pred_arima: One-step ahead predictions from a ARIMA model

View source: R/pred_arima.R

pred_arimaR Documentation

One-step ahead predictions from a ARIMA model

Description

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.

Usage

pred_arima(mod, x, xreg = NULL)

Arguments

mod

a class "Arima" object

x

the time series used to create the model

xreg

Values of covariate used to create the model

Value

a matrix where the first row is the prediction and the second row is the SE of the prediction.

Examples

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)


adamreimer/preseason documentation built on Feb. 3, 2024, 3:39 a.m.