| get.varma.params {ldt} | R Documentation |
Split VARMA parameter into its Components
Description
Use this function to extract AR, MA, intercept, and exogenous coefficients from the VARMA estimation.
Usage
get.varma.params(
coef,
numAR = 1,
numMA = 0,
numExo = 0,
intercept = TRUE,
numAR_s = 0,
numMA_s = 0,
numSeasons = 1
)
Arguments
coef |
A matrix of coefficients with dimensions |
numAR |
A non-negative integer scalar specifying the number of AR lags. |
numMA |
A non-negative integer scalar specifying the number of MA lags. |
numExo |
A non-negative integer scalar specifying the number of exogenous variables. |
intercept |
A logical scalar indicating whether an intercept is included in the model. |
numAR_s |
A non-negative integer scalar specifying the number of seasonal AR lags. |
numMA_s |
A non-negative integer scalar specifying the number of seasonal MA lags. |
numSeasons |
A non-negative integer scalar specifying the number of seasons. |
Value
A list with the following items:
-
arList: A list containing the AR coefficients for each lag. -
intercept: A numeric vector of lengthnumEqcontaining the intercept, orNULLifintercept = FALSE. -
exoCoef: A matrix of dimensionsnumEqxnumExocontaining the exogenous coefficients, orNULLifnumExo = 0. -
maList: A list containing the MA coefficients for each lag.
See Also
Examples
# see 'search.varma' or 'estim.varma' functions.