VARIMA: Estimate a VARIMA model

View source: R/VARIMA.R

VARIMAR Documentation

Estimate a VARIMA model

Description

Estimates a VARIMA model of a given order.

Usage

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, ...)

Arguments

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 fabletools::forecast.mdl_df()).

bootstrap

If TRUE, then forecast distributions are computed using simulation with resampled errors.

times

The number of sample paths to use in estimating the forecast distribution when bootstrap = TRUE.

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.

Details

Exogenous regressors and common_xregs can be specified in the model formula.

Value

A model specification.

A one row tibble summarising the model's fit.

Specials

pdq

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.

xreg

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))

Identification

Kronecker indices ("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 ("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.

No identification ("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).

References

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.

See Also

MTS::VARMA(), MTS::Kronfit().

Examples


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")


tidyverts/fable documentation built on Nov. 30, 2024, 10:49 p.m.