VAR.est | R Documentation |
This function returns least-squares estimation results for VAR(p) model
VAR.est(x, p, type = "const")
x |
data matrix in column |
p |
AR order |
type |
"const" for the AR model with intercept only, "const+trend" for the AR model with intercept and trend |
VAR estimation
coef |
coefficient matrix |
resid |
matrix of residuals |
sigu |
residual covariance matrix |
zzmat |
data moment matrix |
zmat |
data moment matrix |
tratio |
matrix of tratio corresponding to coef matrix |
See Chapter 3 of Lutkepohl (2005)
Jae H. Kim
Lutkepohl, H. 2005, New Introduction to Multiple Time Series Analysis, Springer
#replicating Section 3.2.3 of of Lutkepohl (2005)
data(dat)
M=VAR.est(dat,p=2,type="const")
print(M$coef)
print(M$tratio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.