VARIMA | R Documentation |
Estimates a VARIMA model of a given order.
VARIMA(formula, identification = NULL, ...)
## S3 method for class 'VARIMA'
forecast(
object,
new_data = NULL,
specials = NULL,
bootstrap = FALSE,
times = 5000,
...
)
## S3 method for class 'VARIMA'
fitted(object, ...)
## S3 method for class 'VARIMA'
residuals(object, ...)
## S3 method for class 'VARIMA'
tidy(x, ...)
## S3 method for class 'VARIMA'
glance(x, ...)
## S3 method for class 'VARIMA'
report(object, ...)
## S3 method for class 'VARIMA'
generate(x, new_data, specials, ...)
## S3 method for class 'VARIMA'
IRF(x, new_data, specials, impulse = NULL, orthogonal = FALSE, ...)
formula |
Model specification (see "Specials" section). |
identification |
The identification technique used to estimate the model. Possible options include NULL (automatic selection), "kronecker_indices" (Kronecker index identification), and "scalar_components" (scalar component identification). More details can be found in the "Identification" section below. |
... |
Further arguments for arima |
object |
A model for which forecasts are required. |
new_data |
A tsibble containing the time points and exogenous regressors to produce forecasts for. |
specials |
(passed by |
bootstrap |
If |
times |
The number of sample paths to use in estimating the forecast distribution when |
x |
A fitted model. |
impulse |
A character string specifying the name of the variable that is shocked (the impulse variable). |
orthogonal |
If TRUE, orthogonalised impulse responses will be computed. |
Exogenous regressors and common_xregs
can be specified in the model
formula.
A model specification.
A one row tibble summarising the model's fit.
The pdq
special is used to specify non-seasonal components of the model.
pdq(p = 0:5, d = 0:2, q = 0:5)
p | The order of the non-seasonal auto-regressive (AR) terms. If multiple values are provided, the one which minimises ic will be chosen. |
d | The order of integration for non-seasonal differencing. If multiple values are provided, one of the values will be selected via repeated KPSS tests. |
q | The order of the non-seasonal moving average (MA) terms. If multiple values are provided, the one which minimises ic will be chosen. |
Exogenous regressors can be included in an VARIMA model without explicitly using the xreg()
special. Common exogenous regressor specials as specified in common_xregs
can also be used. These regressors are handled using stats::model.frame()
, and so interactions and other functionality behaves similarly to stats::lm()
.
The inclusion of a constant in the model follows the similar rules to stats::lm()
, where including 1
will add a constant and 0
or -1
will remove the constant. If left out, the inclusion of a constant will be determined by minimising ic
.
xreg(...)
... | Bare expressions for the exogenous regressors (such as log(x) )
|
"kronecker_indices"
, the default)Determines the structural complexity and degrees of freedom in a VARIMA model by analysing the singularities in the polynomial matrices.
Kronecker indices represent the structural properties of the VARIMA system, focusing on the relationship between system inputs and outputs. These indices define the minimal realisation of the model, helping to determine the order and complexity of each equation in the system. They are particularly suited for capturing dynamic dependencies in multivariate systems with cointegrated processes. This is particularly useful for understanding system-wide dependencies and cointegrating relationships, however it is computationally intensive for models with many variables.
"scalar_components"
)Simplifies VARIMA models by identifying univariate "scalar components" that combine linear combinations of variables into simpler sub-models. This uses canonical correlation analysis (CCA) to find linear combinations of variables with minimal lag orders. These combinations are then modeled as simpler ARIMA processes reducing the complexity and dimensionality of the full VARIMA model. This is particularly useful for identifying models with many variables, however it assumes good separability of the components.
"none"
)Directly estimates the model as specified by p
, d
, and q
. This allows
all coefficients up to lag p
and q
(for the AR and MA components) to be
freely estimated. This can be problematic as the estimation of parameters
without identification is not unique.
Identification is necessary for VARIMA models to ensure that the model is parsimonious, unique, and interpretable. Without proper identification, the model can become overly complex, redundant, or ambiguous, making estimation and interpretation challenging.
For a more detailed comparison of identification methods, refer to Athanasopoulos et al (2012).
Athanasopoulos, George, D. S. Poskitt, and Farshid Vahid. "Two Canonical VARMA Forms: Scalar Component Models Vis-à-Vis the Echelon Form." Econometric Reviews 31, no. 1 (January 2012): 60–83. https://doi.org/10.1080/07474938.2011.607088.
MTS::VARMA()
, MTS::Kronfit()
.
library(tsibbledata)
aus_production %>%
autoplot(vars(Beer, Cement))
fit <- aus_production %>%
model(VARIMA(vars(Beer, Cement) ~ pdq(4,1,1), identification = "none"))
fit
fit %>%
forecast(h = 50) %>%
autoplot(tail(aus_production, 100))
fitted(fit)
residuals(fit)
tidy(fit)
glance(fit)
report(fit)
generate(fit, h = 10)
IRF(fit, h = 10, impulse = "Beer")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.