Sign in

Alex

@s3alfisc.bsky.social
277 followers 430 following 221 posts

Data Science, open source and economics. Developing pyfixest. github.com/s3alfisc

PostsRepliesMedia
Reposted by Alex
Vincent Arel-Bundock @vincentab.bsky.social · 10/08/2026
If you use #Typst and want to create beautiful slide shows, using a simple interface, check out my new Mosaic package! The website hosts tons of tutorials and examples. Please let me if you try, find bugs, or have feature requests. I'm very eager to improve Mosaic!
2616
Alex @s3alfisc.bsky.social · 04/08/2026
We have a new how-to guide on anytime valid inference in the pyfixest docs: pyfixest.org/how-to/anyti... SAVI following Lindon et al will follow in the next release =)
010
Alex @s3alfisc.bsky.social · 31/07/2026
cc @juanitorduz.bsky.social maybe you have some advice?
120
Reposted by Alex
Vincent Arel-Bundock @vincentab.bsky.social · 20/06/2026
🎉 Announcing Calepin 🎉 A new tool to create computational notebooks and static websites, built on Typst. Write code and prose directly in your .typ files, then publish them as documents or as a full website. vincentarelbundock.github.io/calepin/ 1/6 🧵 #Rstats #Pydata #Typst
611026
Reposted by Alex
Yiqing Xu @yiqingxu.bsky.social · 24/05/2026
On panelView, and why we should always look at our data first.. yiqingxu.substack.com/p/plot-your-...
yiqingxu.substack.com
Please look at your (panel) data
Many of the most egregious issues can be avoided by simply looking at the data.
08121
Reposted by Alex
Paul Goldsmith-Pinkham @paulgp.com · 21/04/2026
Python implementation of `rdrobust` that is significantly faster! github.com/leostimpfle/... These runtimes are in logscale!!
3273
Reposted by Alex
apoorva lal @handle.invalid · 14/04/2026
been trying to get my claw to teach me Lean - send PRs cuz misery loves company github.com/apoorvalal/l...
github.com
GitHub - apoorvalal/lean-hansen-econometrics: formalizing econometrics
formalizing econometrics. Contribute to apoorvalal/lean-hansen-econometrics development by creating an account on GitHub.
282
Reposted by Alex
sbi - Simulation-based inference @sbi-devs.bsky.social · 09/04/2026
sbi v.0.26.1 is out 🎉. We initially planned this release for January, but then the Grenoble Hackathon and GSoC applications happened. Now we have three new methods, better neural nets, cleaner internals, better docs, and 9 new contributors 🤗. Highlights below 🧵
194
Alex @s3alfisc.bsky.social · 23/03/2026
If you work on very large and very sparse fixed effects problems as in worker-firm panels, or doctor-patient relations, we'd love to learn if it works for you / speeds up your regressions!
001
Alex @s3alfisc.bsky.social · 23/03/2026
There is also long-form documentation of the new algorithmic strategy github.com/py-econometr... plus a new vignette in which we try to explain why our initial "vanilla MAP" algorithm struggled so much on "hard" fixed effects problems: pyfixest.org/explanation/...
100
Alex @s3alfisc.bsky.social · 23/03/2026
You can find the repo here: github.com/py-econometr...
100
Alex @s3alfisc.bsky.social · 23/03/2026
You can access the new algo via the `demeaner_backend = "rust-cgs"` option of `pf.feols()`, and we have published it in a standalone rust crate (including Python bindings. R bindings are WIP and we could use some help! Even more with Stata).
101
Alex @s3alfisc.bsky.social · 23/03/2026
Fixed effects are 'sparse' if each observation belongs to only a few groups. In a worker firm panel, this means that most workers only work at a single firm and (almost) never change their employer.
100
Alex @s3alfisc.bsky.social · 23/03/2026
I am very excited that PyFixest 0.50.0 is on PyPi, including a new graph-based solver for demeaning that makes fixed effects estimation in PyFixest significantly faster for "sparse" fixed effects structures.
1157
Alex @s3alfisc.bsky.social · 28/02/2026
This looks really good! Would you be open to me adding a pyfixest fitting skill (😇)? Also, have you found a good way to make the docs more LLM accessible, i.e. via providing md twins for each html page / providing an llms.txt / do you think it might be valuable? github.com/NVIDIA/sphin...
100
Alex @s3alfisc.bsky.social · 25/02/2026
MacKinnon Nielsen Webb have also suggested a "fast" cluster jackknife - I had implemented it a long time ago in `summclust`. Description of the ago here: s3alfisc.github.io/summclust/ar...
130
Alex @s3alfisc.bsky.social · 22/02/2026
In Kopenhagen schmeckt der 6 Euro Kaffee aber immerhin ...
000
Alex @s3alfisc.bsky.social · 21/02/2026
Meta Issue on GitHub: github.com/py-econometr...
github.com
PyFixest Sprint · Issue #1178 · py-econometrics/pyfixest
We are organizing a sprint in March 4th–6th 2026 (for more details, see here). We'd like to work on the following topics: #1179 #1174 #1180 #1182 #1183
000
Alex @s3alfisc.bsky.social · 21/02/2026
PyFixest Sprint We will be doing a 3-day PyFixest sprint in two weeks - are there any features / regression-based methods widely useful to applied researchers you'd like us to explore/ add?
110
Alex @s3alfisc.bsky.social · 19/02/2026
Also shamelessly plugging @mchow.com as I am wondering if this potentially already available with quartodoc?
000
Alex @s3alfisc.bsky.social · 19/02/2026
@jacobtomlinson.dev has been working on sphinx llm - core idea: provide a .md file for each page of your docs. Does this really help LLMs navigate the documentation? And what about an llms.txt? If yes, what are best practices? github.com/NVIDIA/sphin...
github.com
GitHub - NVIDIA/sphinx-llm: LLM extensions for Sphinx Documentation
LLM extensions for Sphinx Documentation. Contribute to NVIDIA/sphinx-llm development by creating an account on GitHub.
100
Alex @s3alfisc.bsky.social · 18/02/2026
For me it might be "most fixest installs on CI via r2u" 😀
110
Alex @s3alfisc.bsky.social · 18/02/2026
This is very funny, is it possible to send kudos after burning through a lot of tokens? 😂
110
Alex @s3alfisc.bsky.social · 31/01/2026
(Ok, FixedEffectsModels.jl does pretty awesome as well. And we still have quite some catchup work to do with pyfixest =) )
000
Alex @s3alfisc.bsky.social · 31/01/2026
If you fit hdfe regressions with complex fixed effects structures, fixest is unquestionably the goat in terms of performance.
100
Alex @s3alfisc.bsky.social · 31/01/2026
Plus, the performance, which you get via a highly optimized MAP algorithm (with local IT acceleration, global smoothing, and a range of internal tricks and heuristics, see here for lrberge.github.io/fixest/refer...) and all the perf improvements that multiple estimation syntax allows.
110
Alex @s3alfisc.bsky.social · 31/01/2026
I could of course go on here... for more ideas in API design, read the paper!
100
Alex @s3alfisc.bsky.social · 31/01/2026
- Then of course you get regression tables out of the box with etable. - And you can "bring your own vcov's" functionality with easy plug ins. - We get a new operator for interacting variables with i(var1, var2) (very under appreciated imo!) - Last, my favorite feature: multiple estimation syntax!
100
Alex @s3alfisc.bsky.social · 31/01/2026
To point out just a few innovations on the API side that imo set the standard for regression packages. You get - separation of estimation and inference - and you can adjust inference post-estimation "on the fly" - a lot of handy post-estimation processing: coef, se, iplot, predict, and much more ..
100
Alex @s3alfisc.bsky.social · 31/01/2026
Strong agree. And do read the paper! It illustrates very nicely how much thought and creativity has gone into designing fixest's API and performance optimizations which are really the two things that make fixest as great.
240
Alex @s3alfisc.bsky.social · 28/01/2026
The neat thing is that this idea generalizes to regression and is worked out in the paper by Wong et al listed in the dbreg docs.
030
Alex @s3alfisc.bsky.social · 28/01/2026
You are left with a 2x2 "compressed" data matrix of "sufficient statistics" and "weights", which here is just the number of treated and untreated observations. You can now compute an ATE (as sum_Y(1) / w(1) - sum_Y(0) / w(0)) and also SEs.
140
Alex @s3alfisc.bsky.social · 28/01/2026
Core idea: say you want to compute the impact of an RCT on Y. You only need: - the sum of Y in test and control sum_Y(D) - the sum of squares of Y in test and control - and store the number of treated and non treated units. w(D) You can get all of it in a simple group by and sum evaluation.
120
Reposted by Alex
Grant McDermott @gmcd.bsky.social · 26/01/2026
Things are grim. But in more frivolous news... @jamesbrandecon.bsky.social and I have been chipping away at `dbreg`, a 📦 for running big regression models on database backends. For the right kinds of problems, the speed-ups are near magical. Website: grantmcdermott.com/dbreg/ #rstats [1/2]
grantmcdermott.com
dbreg
46815
Alex @s3alfisc.bsky.social · 06/01/2026
Cool! I have many question: Is this in Python and do you have a GitHub repo and would you be up to contribute to moderndid? 😀
110
Alex @s3alfisc.bsky.social · 06/01/2026
I'll take a close look, thanks!
010
Alex @s3alfisc.bsky.social · 05/01/2026
Very flattering (and exciting!) to see that Claude Code, even though prompted to use other packages, decided that it was a good choice to fit a TWFE regression in Python via PyFixest =)
060
Alex @s3alfisc.bsky.social · 04/01/2026
I also like the `event_study` API @kylefbutts.bsky.social introduced (and that we also have in pyfixest), though I think this is mostly a functional wrapper around the att_gt class?
140
Alex @s3alfisc.bsky.social · 04/01/2026
I've been wondering if pyfixest syntax is ideal for the new DiD estimators - what moderndid does seems to make very good sense to me - first there is a model class call, and then users can specify aggregation levels of ATTs. This is more or less the same API that the R did package uses:
131
Alex @s3alfisc.bsky.social · 03/01/2026
If you want to get started with OSS and have questions, please reach out! I'm happy to help wherever I can =)
100
Alex @s3alfisc.bsky.social · 03/01/2026
As all packages are developed by volunteers, please consider helping out with writing code or documentation - the hurdle for contributing to OSS has never been lower. Plus, you might learn a thing or two about software engineering best practices, which will be a useful skill to have in the future!
110
Alex @s3alfisc.bsky.social · 03/01/2026
- mlsynth for synth controls (github.com/jgreathouse9...) - moderndid & PyFixest for DiD - rdrobust (which needs better documentation and maybe a cleaner API) github.com/rdpackages/r... - @apoorvalal.com 's torchonometrics for metrics on the GPU: github.com/apoorvalal/t...
110
Alex @s3alfisc.bsky.social · 03/01/2026
Btw - the Python open source applied metrics tooling is growing rapidly. We now have: - PyFixest for HDFE regressions (github.com/py-econometr...) - marginaleffects for marginal effects (github.com/vincentarelb...) - maketables for regression tables (github.com/py-econometr...)
131
Alex @s3alfisc.bsky.social · 03/01/2026
If you are aware of any other high quality implementations of "modern" estimators in Python, please let us know!
111
Alex @s3alfisc.bsky.social · 03/01/2026
From PyFixest, we plan to contribute - DiD2s a la Gardner - Local Projections as in @arindube.bsky.social - Fully Interacted Estimators as in Sun&Abraham Plus, hopefully, the imputation estimator from github.com/jsr-p
110
Alex @s3alfisc.bsky.social · 03/01/2026
It comes with implementations for - The CS estimator @pedrosantanna.bsky.social - Honest DiDs following @jondr44.bsky.social 's work - Continuous DiD following @pedrosantanna.bsky.social
230
Alex @s3alfisc.bsky.social · 03/01/2026
There is a new-ish Python package, moderndid, that implements almost all of the "modern" DiD estimators: github.com/jordandekler...
github.com
GitHub - jordandeklerk/moderndid: Python package implementing modern DiD estimators with diagnostic tools and sensitivity analysis.
Python package implementing modern DiD estimators with diagnostic tools and sensitivity analysis. - jordandeklerk/moderndid
1304
Alex @s3alfisc.bsky.social · 01/01/2026
Absolutely phenomenal news, congratulations Juan!
010
Alex @s3alfisc.bsky.social · 26/12/2025
TIL that `maketables` already supports regression tables via `typst`: py-econometrics.github.io/maketables/d... Happy holidays everyone! =)
000
Alex @s3alfisc.bsky.social · 21/12/2025
Setting up a small repo to evaluate this based on CRAN packages. Will post here once on GitHub
100