This repository contains an R script for estimating a Vector Autoregression (VAR) model using German quarterly macroeconomic and fiscal data.
- Structural VAR with Cholesky identification
- Quarterly frequency (ts object, frequency = 4)
- Lag length selected via AIC, BIC, HQIC, and FPE
- Constant term included
- Government expenditure growth
- Tax revenue growth
- GDP growth
- Inflation
- Short-term interest rate (Euribor 3M)
R packages:
- readr
- lubridate
- zoo
- vars
- ggplot2
- dplyr
- Adjust the file path to the quarterly CSV data.
- Run
VAR_Rcode.Rto estimate the model and generate outputs.
The script is fully reproducible and designed for academic use (e.g. bachelor thesis).