Bcoef | R Documentation |
Returns the estimated coefficients of a VAR(p) as a matrix.
Bcoef(x)
x |
An object of class ‘ |
Given an estimated VAR of the form:
\hat{\bold{y}}_t = \hat{A}_1 \bold{y}_{t-1} + \ldots +
\hat{A}_p \bold{y}_{t-p} + \hat{C}D_t
the function returns the matrices (\hat{A}_1 | \ldots |
\hat{A}_p | \hat{C})
as a matrix object.
A matrix holding the estimated coefficients of a VAR.
This function was named B
in earlier versions of package
vars; it is now deprecated. See vars-deprecated
too.
Bernhard Pfaff
Acoef
, VAR
data(Canada)
var.2c <- VAR(Canada, p = 2, type = "const")
Bcoef(var.2c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.