Alex Fischer (@s3alfisc) profile picture

data science @trivago. Working on #pyfixest and #rstats and #python packages for clustered errors

Düsseldorf, Germany
Joined February 2022
Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)Photo by Alex Fischer (@s3alfisc)
PyFixest is looking for contributors 🚀 If you'd like to help build PyFixest, please reach out (DMs are open)! Please don't worry if you've never contributed to an OSS project - I'd be super happy to onboard you to the codebase/git/OSS development, or really anything else =)
2
11
2
32
13,263
𝗣𝘆𝗙𝗶𝘅𝗲𝘀𝘁 𝟬.𝟳𝟬.𝟬 is on 𝗣𝘆𝗣𝗶! When we started working on PyFixest around 4 years ago, we jokingly set the target to complete the project before the "agents would take over" and write all of the code.
1
8
37
3,226
And we almost succeeded: while almost all of the code in 0.70.0 has been written by agents (but scrupulously reviewed and adjusted by us), I believe that we have finally achieved feature-parity with the software that inspired PyFixest - Laurent Berge's formidable 𝗳𝗶𝘅𝗲𝘀𝘁.
1
2
182
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.
1
1
3
197
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.
1
36
`maketables` now has plug-in tooling - this means you can support maketables with your library without changing the maketables code base. This will hopefully be pretty useful for package developers, but also researchers developing their own estimators / in their own codebase.
1
1
40
𝗣𝘆𝗙𝗶𝘅𝗲𝘀𝘁 𝟬.𝟮𝟳: (𝗣𝗿𝗲-𝗖𝗵𝗿𝗶𝘀𝘁𝗺𝗮𝘀 🎅) 𝗥𝗲𝗹𝗲𝗮𝘀𝗲 Hi all, a new version of PyFixest (0.27) has found it's way to PyPi! Highlights: we now support Gelbach's regression decomposition & Westfall and Young's multiple testing correction.
1
2
16
840
For both methods, we have added new notebooks that provide motivation and show you how to apply them via pyfixest.
1
40
We’ve released a patch to pyfixest (0.26.2). Some highlights: - feols and fepois have new split and fsplit arguments (just as in fixest!) - you can check for separation in Poisson models via the „iterative rectifier“ - we’ve fixed a 🐞 in the predict method for WLS
2
1
9
553
Is there someone with a Stata license around here who’d like to help us integrate Gelbach’s regression decomposition into pyfixest? I’d like to run some tests against the b1x2 module but don’t have access to Stata. Would be much appreciated! GitHub issue below:
3
1
3
947
If you know of a method implemented in stata that you’d like to see in pyfixest, please let me know!
Replying to @FlorianOswald
Yes! FE was one I had in mind... E.g. 3way FE with options to cluster standard errors and generating goodness of fit measures. @s3alfisc is working on that in Python, and very grateful for it! (And albeit reghdfe = user base). I guess @jmwooldridge will have more examples 😀
1
2
9
1,144
As they would say at marginal revolution: self-recommending!
📚🚨 I posted 11 new chapters of my upcoming book! Model to Meaning: How to Interpret Statistical Results with #marginaleffects for #RStats and Python. These are early drafts and I really need your feedback! Errors, content requests, improvements, etc. marginaleffects.com
3
361
PyFixest 0.25.2 is on PyPi! Here are my personal release highlights: 1) We have added an option for plotting outcome variables in difference-in-differences models as in @xuyiqing awesome R package.
1
5
15
2,092
2) A new pf.dtable() function produces a table with publication-ready summary statistics. See the documentation here: py-econometrics.github.io/py…
1
97
In case you missed it: Abadie's et al Causal Cluster Variance Estimator (without fixed effects) implemented in Python via pyfixest's ccv method. =) py-econometrics.github.io/py…
Replying to @Apoorva__Lal
Ah on this very topic, I was wondering as early as last week if someone (let's be more specific, someone like you :)) already coded (in our fav languages R and Py) the std err fml suggested by Abadie et al (2020 ECMA)? Sounds like another imp. thing for design-based inf. w/ X :)
16
1,275
fwildclusterboot & wildrwolf are back on r-universe but CRAN might still take some time (@huseynovecon, link s3alfisc.r-universe.dev/buil…): So you can simply install them via install.packages( c("fwildclusterboot", "wildrwolf", repos = c('s3alfisc.r-universe.dev') )
1
2
391
Question for open source devs - how do you handle long running CI tests? Context: for my project, tests now run for about 1h plus, which is of course far too long. We are already splitting the tests & running them in parallel.
3
1
949
Should we significantly rework the CI and split into a set of "lean" tests that run for each PR, and "long" tests that run on daily builds?
1
109
We've released a small patch for pyfixest - with version 0.24.0, etable() is even more customizable and also prettier. And the latex conversion of regression tables is working too!
1
4
12
1,360
You can find the intro vignette to etable() here: py-econometrics.github.io/py… Practically all of this is work by Dirk (who I don't think is here - github.com/dsliwka), building on work by @Wenzhi_Ding
1
3
143
PyFixest 0.23.0 is on PyPi 🎉 Here are my personal highlights: - We have merged PRs from 7 (!) new contributors 🚀 - We support Wald Tests via a dedicated `wald_test()` method! 🌳 - We now provide IV diagnostics! - Last, the output of `pf.etable()` got a little prettier:
1
7
46
2,930
Absolutely wild benchmarks for duckreg (which also wins this years “📦-name of the year” award)
Replying to @s3alfisc
was waiting to finish my HC1 implementation before I did some benchmarking but here's a fuller comparison of (analytic) point est and SE in duckreg, pyfixest, and statsmodels. estimates are identical. runtimes are order of 1:40:600.
1
7
1,064
If you want to use randomization inference in Python, pyfixest has got you covered! py-econometrics.github.io/py…
Hi #EconTwitter!📈 Randomization and 𝐩𝐞𝐫𝐦𝐮𝐭𝐚𝐭𝐢𝐨𝐧 𝐭𝐞𝐬𝐭𝐬 are becoming increasingly popular in #economics and #econometrics. If you are new to the field and want to gain some insights, check out this brand new survey by @DRitzwoller (@Stanford), Joseph Romano (@Stanford) & Azeem Shaikh (@UChicago). It's all you need. 📚 Highly recommended! ⭐️ Link: arxiv.org/abs/2406.09521
4
24
4,811
Found a bad bug in pyfixest's wildboottest method. Urgh. Fix is on PyPi with pyfixest 0.22.0. Also affected the rwolf() function in case you might have been using it. Lesson: don't only test your code, but also test your tests🧐
8
367