
Pinned Tweet
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 =)
𝗣𝘆𝗙𝗶𝘅𝗲𝘀𝘁 𝟬.𝟳𝟬.𝟬 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.
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.
`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.
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
You can find the full release notes here: github.com/py-econometrics/p… (it refers to 0.25.4 as, long story short, I messed up the pypi release).
1
112
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:
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 😀
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
Our paper on how to fit industry scale panel regressions really fast and without out-of-memory errors is on arxiv!
Also check out the associated software at the duckreg repo github.com/py-econometrics/d…
Come see me present this at CODE on Friday! Or read the paper, use the software, and send us feedback.
arxiv.org/abs/2410.09952
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.
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
My favorite talk this year!
@optimagic is a wrapper library that provides a common API to around 60 opzimizers implemented in Python.
Particularly enjoyed how much thought & effort the package authors (@JanosGabler & @MensingerTim) put into designing a user friendly API!
Here’s the @optimagic GitHub repo github.com/optimagic-dev/opt… and the excellent documentation: optimagic.readthedocs.io/en/…
2
106
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!
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
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.
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














