| VAR | R Documentation |
Estimates a standard VAR(1)
VAR(RiskFactors, VARtype, Bcon_Mat = NULL)
RiskFactors |
numeric matrix ( |
VARtype |
character. Permissible choices: "unconstrained" or "constrained". |
Bcon_Mat |
matrix ( |
list. Contains:
intercept (K x 1)
feedback matrix (K x K)
variance-covariance matrix (K x K) of a VAR(1)
Td: model time series dimension
N: number of country-specific spanned factors
K: total number of risk factors
data(RiskFacFull)
# Example 1: unconstrained case
VAR_para1 <- VAR(RiskFacFull, VARtype = "unconstrained")
# Example 2: constrained case
K <- nrow(RiskFacFull)
Bcon_Mat <- matrix(0, nrow = K, ncol = K + 1)
Bcon_Mat[, 1:3] <- NaN
VAR_para2 <- VAR(RiskFacFull, VARtype = "constrained", Bcon_Mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.