Auxiliary function to specify the number of regimes and lag orders
Source:R/helperfunctions.R
ars.RdThis auxiliary function defines the regime structure of a multivariate TAR model by specifying the number of regimes and the corresponding lag orders for the endogenous, exogenous, and threshold series in each regime.
Arguments
- nregim
A positive integer indicating the total number of regimes.
- p
A list of positive integers specifying the autoregressive order of the output series within each regime.
- q
A list of non-negative integers specifying the maximum lag of the exogenous series within each regime.
- d
A list of non-negative integers specifying the maximum lag of the threshold series within each regime.