Code and software
MarSwitching.jl — Markov switching models in Julia
MarSwitching.jl is a Julia package for estimating Markov switching dynamic models, also known as regime-switching models. These are models whose parameters change across unobserved states of the world — useful whenever an economic or financial time series behaves differently in, say, expansions and recessions, or in calm and turbulent markets.
The package supports time-varying transition probabilities, mixture and vector autoregressive specifications, simulation, and maximum likelihood estimation. It is listed in the general registry of Julia packages (the equivalent of R’s CRAN or Python’s PyPI) and is published in the Journal of Open Source Software.
Bogumił Kamiński, author of DataFrames.jl, wrote about the package in his post “Advanced econometrics with Julia”.
stooq.pl wrapper — Polish market data
A set of functions for downloading market data from stooq.pl. Mostly useful for Polish stock market data, which foreign sources cover poorly — Yahoo Finance and Python’s yfinance, for instance, have limited coverage of the Warsaw Stock Exchange.
Replication code
- Agent-based model of a banking sector — R code reproducing the model in this paper.
- Systemic risk and financial connectedness — code for the working paper of the same name, listed on my publications page.
