Description Usage Arguments Value Author(s) Examples
This function allows you to forecast with the mixed causal-noncausal model with possibly exogenous regressors.
1 | forecast.marx(y, X, p_C, p_NC, X.for, h, M, N)
|
y |
Data vector y. |
X |
(optional) Matrix with data (column represent a series). |
p_C |
Number of lags (causal order). |
p_NC |
Number of leads (noncausal order). |
X.for |
(optional) Matrix with forecasted values for X (column represents series). |
h |
Forecast horizon h. |
M |
(optional) Truncation value M for MA representation. Default value: 50. |
N |
(optional) Number of simulations to forecast noncausal component. Default: 10,000. |
y.for |
Vector containing forecasted values for y. |
Sean Telg
1 2 3 | ## 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)
|
There were 17 warnings (use warnings() to see them)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.