stata tutorial
How to estimate Vector Autoregression (VAR) models
Part 1

What is a vector autoregression (VAR) model?
VAR stands for vector autoregression, and was proposed by Christopher Sims in his paper “Macroeconomics and Reality (1980)”. VAR models generalize univariate models as it allows for multiple endogenous variables. Recall that on previous tutorials, we have estimated univariate models. Now it’s time to estimate multivariate models. We will allow for more endogenous variables in the model. Nowadays, VAR models are widely used in the economics field.
vector autoregression formalities
VAR models allow for the interaction between diverse variables and are called endogenous variables. Each endogenous variable is explained by its own past lags, the past lags of the other variables in the model and a serially uncorrelated error term.
Example: Bivariate var (x,y)
Let’s go through an example. Let’s suppose we have two variables (x) and (y) and, only one lag: Bivariate VAR(1). Observe that inside brackets there is a (1). It is indicating that the model only incorporates one lag in each variable. We would write the model the following way:
As we can see is explained by its own lag
, the lag of the other variable in the model
and a serially uncorrelated error term
.
Recommended literature
Stata tutorial
How to estimate var models in stata Part 2
- Impulse Response Functions (IRF)
- Cholesky Decomposition
- How to order the variables in a VAR model
- Variance Decomposition

Download the dataset for free and replicate the content covered in the video
Download the Data Set for Free (direct download, no adds).
$4.99 CAD
PRemium Content
- Complete DO file to replicate the whole content (includes video 1 and 2 )
- Video Slides (video 1 and 2)
- Dataset
- Support for any inconvenience
check out other free courses

EViews
Learn applied time series in EViews for Free. Some topics you wll learn are how to generate time variables, ARIMA Models, VAR models and more!

LaTex with overleaf
It's time to write your paper in a professional format. Make your paper look great with Overleaf.
book a meeting
Do you need help with your research plan?
Are you stuck and need help to design/plan your thesis topic and methodology?
buy the material
Elevate your learning experience. You can buy the package for each of the tutorials. Each package contains the slides of the video + Workfile/Do File + Data & Support