VAR(y, p = 1, type = c("const", "trend", "both", "none"),
season = NULL, exogen = NULL, lag.max = NULL,
ic = c("AIC", "HQ", "SC", "FPE"))ic.lag.max is not NULL.varestlmNULL or a matrix object containing
the zero restrictions of the VAR(p).call to type argument to the corresponding value and/or
setting season to the desired frequency (integer) and/or providing a
matrix object for exogen, respectively. The default for type is
const and for season and exogen the default is
set to NULL.
If for lag.max an integer value is provided instead of
NULL (the default), the lag length is determined by the
selected information criteria in ic, the default is Akaike.summary, plot,
coef, residuals,
fitted, predict, irf,
fevd, Phi, Psi,
normality, arch, serial,
VARselect, logLikdata(Canada)
VAR(Canada, p = 2, type = "none")
VAR(Canada, p = 2, type = "const")
VAR(Canada, p = 2, type = "trend")
VAR(Canada, p = 2, type = "both")Run the code above in your browser using DataLab