powered by
This function allows you to forecast with the mixed causal-noncausal model with possibly exogenous regressors.
forecast.marx(y, X, p_C, p_NC, X.for, h, M, N)
Data vector y.
(optional) Matrix with data (column represent a series).
Number of lags (causal order).
Number of leads (noncausal order).
(optional) Matrix with forecasted values for X (column represents series).
Forecast horizon h.
(optional) Truncation value M for MA representation. Default value: 50.
(optional) Number of simulations to forecast noncausal component. Default: 10,000.
Vector containing forecasted values for y.
# NOT RUN { ## Forecasting MAR(0,1) model 4-periods ahead for lnbev (from dataset) data <- MARX::dataset[,2] y.for <- forecast.marx(y=data, p_C=0, p_NC=1, h=4, M=50, N=1000) # }
Run the code above in your browser using DataLab