VAR.etp (version 0.7)

VAR.est: Estimation of unrestricted VAR(p) model parameters

Description

This function returns least-squares estimation results for VAR(p) model

Usage

VAR.est(x, p, type = "const")

Arguments

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

Value

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

Details

VAR estimation

References

Lutkepohl, H. 2005, New Introduction to Multiple Time Series Analysis, Springer

Examples

Run this code

#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)

Run the code above in your browser using DataCamp Workspace