ARMA_forecast(h, X0, A, b, intercept = 0)integer(1), number of steps ahead.
numeric vector of length p + q, state vector of past values.
numeric matrix of size p+q x p+q. See the function ARMA_companion_matrix for more details.
mumeric vector of length p+q. See the function ARMA_vector_b for more details.
Numeric scalar, intercept parameter.
Version 1.0.2
Other ARMA-moments:
ARMA_covariance(),
ARMA_expectation(),
ARMA_filter(),
ARMA_next_step(),
ARMA_variance()
h <- 1000
X0 <- c(0.2, 0.1)
A <- ARMA_companion_matrix(0.2, 0.1)
b <- ARMA_vector_b(1,1)
ARMA_forecast(h, X0, A, b, intercept = 0)
#> # A tibble: 1 × 3
#> step Yt_tilde_hat weights
#> <int> <dbl> <list>
#> 1 1000 0 <tibble [1,000 × 5]>