Code

Fixed effects tools, numerical computing, Stata utilities, and code for research examples and replication.

@johannes-schmieder

View GitHub Profile

fe-tools: Fixed Effects Tools

fevc: Fixed-Effects Variance Components

Bias-corrected variance components for worker–firm fixed-effects models in Stata, using the leave-out approach of Kline, Saggio, and Sølvsten. Estimates worker and firm variances and their covariance, with a native Rust backend for large datasets.

Stata / Mata / RustPaper

ferank: Firm Rankings from Worker Flows

Rank firms from worker moves using Sorkin’s flow-based method or Bradley–Terry paired comparisons. Accepts worker–firm panels or tables of employer-to-employer moves. Alpha package.

Stata / Rust

fesim: Worker–Firm Panel Simulation

Simulate employment histories and wages with known model parameters and truth for teaching and Monte Carlo experiments. Includes additive fixed effects, pay gaps, wage posting, bargaining, and finite worker and firm types.

Stata / Mata

Numerical Computing

CMG: Combinatorial Multigrid in Rust

Deterministic Rust solver for large graph Laplacians and SDDM systems, combining a reusable Combinatorial Multigrid preconditioner with certified PCG solves.

Rust

Stata Utilities

cellgraph

Descriptive figures from grouped data, with confidence intervals and optional covariate adjustment.

Stata

latexlog

Build LaTeX reports from Stata, including text, graphs, and tables.

Stata

texpdf

A standalone LaTeX-to-PDF compiler for Stata that embeds Tectonic and an academic TeX bundle in one native plugin—no local TeX installation or runtime network access required.

Stata + Rust

Research examples and replication

Matching-Eventstudy

Example code for estimating event studies with matched treated and control individuals.

Stata

Job Search Model - Handbook of Labor Economics

Replication code for figures in “Job Search, Unemployment Insurance and Active Labor Market Policies,” the Handbook of Labor Economics chapter by Thomas Le Barbanchon, Johannes Schmieder, and Andrea Weber.

Python