Either creates a VAR model or chooses a VAR model by using VAR or VARselect commands of vars package
vars
Useful links