Update: this material has been substantially expanded into the book Bayesian Macroeconometrics: Methods and Applications (Chapman & Hall/CRC, forthcoming). A sample containing the preface and the first four chapters is available here, and MATLAB, R and Python code for all 14 chapters is available on GitHub.

Tutorials and code libraries: the tutorials answer questions from applied work on Bayesian VARs and state space models with the settings of published papers, and each comes with MATLAB code that runs on your own data:

The tutorials run on two MATLAB libraries: bvar-toolkit, for large Bayesian VARs with shrinkage priors, stochastic volatility, marginal likelihoods and forecasting, and statespace-toolkit, for unobserved components, time-varying parameter, stochastic volatility and dynamic factor models. A third, trend-cycle-toolkit, updates estimates of US trend inflation and the output gap every quarter.

How-to guides: the guides show how to turn a model's equations into working MATLAB code, step by step, on small examples with generated data, and name the sections of the book behind each method:

Below you will find the course notes on Bayesian Macroeconometrics for a PhD course I recently taught. I intend to add additional materials when time permits. Please let me know if you find any typos or if something doesn't make sense.

Current version: ver 1.4 (2017-06)

The associated datasets and code can be downloaded here