Alex's Avatar

Alex

@s3alfisc.bsky.social

Data Science, open source and economics. Currently working on fwildclusterboot and pyfixest. https://github.com/s3alfisc

252 Followers  |  407 Following  |  162 Posts  |  Joined: 25.09.2023  |  1.7275

Latest posts by s3alfisc.bsky.social on Bluesky

Scaling Probabilistic Models with Variational Inference
YouTube video by PyData Scaling Probabilistic Models with Variational Inference

Here is the recording of my talk

PyData Berlin 2025: Introduction to Stochastic Variational Inference with NumPyro

Notebook: juanitorduz.github.io/intro_svi/

youtu.be/wG0no-mUMf0?...

#pydata #berlin #bayes

23.11.2025 18:18 โ€” ๐Ÿ‘ 10    ๐Ÿ” 3    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

#rstats Please welcome Jarl, a new R linter.

Jarl is a CLI tool with extensions in VS Code, Positron, and Zed. It can check thousands of lines of R code in milliseconds.

Jarl provides several output formats, a Github Actions workflow, and more.

Blog post: www.etiennebacher.com/posts/2025-1...

20.11.2025 16:50 โ€” ๐Ÿ‘ 81    ๐Ÿ” 29    ๐Ÿ’ฌ 9    ๐Ÿ“Œ 2

Quickly added support for @apoorvalal.com 's duckreg - took approximately 60 minutes!

github.com/py-econometr...

20.11.2025 21:22 โ€” ๐Ÿ‘ 4    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Admittedly, this was 99% Dirk's work, so all praise should go to him =)

20.11.2025 20:29 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Btw, also works with Stata! py-econometrics.github.io/maketables/d...

20.11.2025 19:57 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@gaborbekes.bsky.social @arthurturrell.bsky.social @vincentab.bsky.social

20.11.2025 19:49 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

Our py-econometrics org has a new package: `maketables` is now installable from PyPi! You can create regression tables for PyFixest, statsmodels, linearmodels, and save them as html, latex, or word.

github: github.com/py-econometr...
docs: py-econometrics.github.io/maketables/

20.11.2025 19:49 โ€” ๐Ÿ‘ 30    ๐Ÿ” 8    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1

Looking forward to the follow-up post on fixed effects in GLMs =)

13.11.2025 19:04 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Demetri Pananos Ph.D - How to Fit a Generalized Linear Model with Fixed Effects (Pt 1)

Trying to learn more about fixed effects. I wrote this for me, maybe this is useful for you too dpananos.github.io/posts/2025-1...

13.11.2025 18:42 โ€” ๐Ÿ‘ 14    ๐Ÿ” 4    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Sorry for all the linkedin post, they just transfer you to the docs / github (I posted on lk first).

13.11.2025 18:39 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
LinkedIn This link will take you to a page thatโ€™s not on LinkedIn

- You can find the full changelog here: lnkd.in/eEdzuVvq
- PyFixest on github: lnkd.in/eJRtm_rz
- maketables on github: lnkd.in/eYhAejYh

13.11.2025 18:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
LinkedIn This link will take you to a page thatโ€™s not on LinkedIn

It currently supports pf and sm. Please check it out and contribute by adding support for your favorite Python estimation classes! Some that we think would be of interest: linearmodels, lifelines, Bambi, rdrobust, DoubleML, meta learners. You can find the package here: lnkd.in/eYhAejYh

13.11.2025 18:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
LinkedIn This link will take you to a page thatโ€™s not on LinkedIn

We believe that there is a lot of value to unlock by providing a "๐—บ๐—ฒ๐˜๐—ฎ ๐—ฟ๐—ฒ๐—ด๐—ฟ๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป ๐˜๐—ฎ๐—ฏ๐—น๐—ฒ" package for the Python scientific eco-system similar to what R has in ๐—บ๐—ผ๐—ฑ๐—ฒ๐—น๐˜€๐˜‚๐—บ๐—บ๐—ฎ๐—ฟ๐˜†. So we have spun out PyFixest's etable functionalities into a standalone package, ๐—บ๐—ฎ๐—ธ๐—ฒ๐˜๐—ฎ๐—ฏ๐—น๐—ฒ๐˜€.

13.11.2025 18:37 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

This strategy is quite amenable to be run on the GPU - for "hard" problems where the alternating projections algorithm struggles to converge, running the demeaning on a ๐—š๐—ฃ๐—จ can provide orders of magnitude of speedups.

13.11.2025 18:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

We've added ๐—ฎ๐—ป๐—ผ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฏ๐—ฎ๐—ฐ๐—ธ end for ๐—ฑ๐—ฒ๐—บ๐—ฒ๐—ฎ๐—ป๐—ถ๐—ป๐—ด ๐—ณ๐—ถ๐˜…๐—ฒ๐—ฑ ๐—ฒ๐—ณ๐—ณ๐—ฒ๐—ฐ๐˜๐˜€: instead of demeaning via the alternating projections algorithm, the new back end implements the Frisch-Waugh-Lovell theorem directly on ๐˜€๐—ฝ๐—ฎ๐—ฟ๐˜€๐—ฒ ๐—บ๐—ฎ๐˜๐—ฟ๐—ถ๐—ฐ๐—ฒ๐˜€.

13.11.2025 18:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

We now support time series, panel ๐—›๐—”๐—– and DK ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ฎ๐—ฟ๐—ฑ ๐—ฒ๐—ฟ๐—ฟ๐—ผ๐—ฟ๐˜€ (which was one of the most requested features, so I am very happy we have it now). It was also a very challenging PR, with very-tricky to debug numpy multi threading floating point errors.

13.11.2025 18:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
LinkedIn This link will take you to a page thatโ€™s not on LinkedIn

First, a couple of weeks ago, the ๐—ณ๐—ถ๐˜…๐—ฒ๐˜€๐˜ dev team released ๐Ÿฌ.๐Ÿญ๐Ÿฏ, which comes with a ๐—ณ๐—ฒ๐˜„ ๐˜€๐—บ๐—ฎ๐—น๐—น๐—ฒ๐—ฟ ๐—ฏ๐—ฟ๐—ฒ๐—ฎ๐—ธ๐—ถ๐—ป๐—ด ๐—ฐ๐—ต๐—ฎ๐—ป๐—ด๐—ฒ๐˜€. We have decided to ๐—ณ๐—ผ๐—น๐—น๐—ผ๐˜„ ๐˜€๐˜‚๐—ถ๐˜ and adjust PyFixest accordingly. The most important change is that by default, all standard errors are "iid".

13.11.2025 18:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
LinkedIn This link will take you to a page thatโ€™s not on LinkedIn

I am very happy that ๐—ฃ๐˜†๐—™๐—ถ๐˜…๐—ฒ๐˜€๐˜ ๐Ÿฌ.๐Ÿฐ๐Ÿฌ.๐Ÿฌ/๐Ÿฌ.๐Ÿฐ๐Ÿฌ.๐Ÿญ is now available on PyPi! The release includes a few technical changes and exciting new features =)

13.11.2025 18:37 โ€” ๐Ÿ‘ 3    ๐Ÿ” 1    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Oh interesting, this does not look good. For me everything has been working well, I just upgraded to the newest fixest release via conda-forge a few weeks ago without any problems (as it happens, on windows!).

02.10.2025 21:16 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

No global R or Python installation needed! And if you have these, no interference with your global installations.

Big fan. pixi.sh/latest/

02.10.2025 20:47 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Got a new PC and getting back to pyfixest dev is a breeze with pixi (via conda-forge, which seems to get too little love?). This just works: clone pf, install pixi, type pixi r tests in the shell, and then pixi installs Python, R, all Python and R deps, all R deps, and then starts running tests.

02.10.2025 20:47 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
fixest: Fast Fixed-Effects Estimations Fast and user-friendly estimation of econometric models with multiple fixed-effects. Includes ordinary least squares (OLS), generalized linear models (GLM) and the negative binomial. The core of the p...

#rstats #econsky

fixest v0.13.0 is finally out!

It's still about making OLS and GLM estimations easy.

Some major changes:
- *default* VCOV becomes iid always!
- singletons are removed by default!

See all the changes here:
github.com/lrberge/fixe...

10.09.2025 19:34 โ€” ๐Ÿ‘ 40    ๐Ÿ” 9    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 2
From the fixest NEWS file: the new default VCOV is iid for all estimations. To change the default to the way it was, place setFixest_vcov(all = "cluster", no_FE = "iid") in your .Rprofile.

From the fixest NEWS file: the new default VCOV is iid for all estimations. To change the default to the way it was, place setFixest_vcov(all = "cluster", no_FE = "iid") in your .Rprofile.

#rstats #econsky PSA: The next release of `fixest` will include some important changes (plus cool new features).

E.g. Fixed-effects regs will now default to 'iid' SEs rather than clustered. github.com/lrberge/fixe...

You can install and test drive the dev version from R-universe; see the README.

18.07.2025 15:36 โ€” ๐Ÿ‘ 32    ๐Ÿ” 11    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Next step is to rewrite the vignette (more to the point & I need to make a better case for the methods usefulness in business contexts).

16.08.2025 08:37 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Also works with "negative" effects:

16.08.2025 08:35 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Vis method for decomposition now merged to main, feedback welcome!

16.08.2025 08:32 โ€” ๐Ÿ‘ 7    ๐Ÿ” 1    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Love to see this, of course =)

15.08.2025 21:40 โ€” ๐Ÿ‘ 5    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

In contrast to uv, it is cross-language and also allows to pin down non-python dependencies in the same env (R, Julia, etc). And it also has nice "pixi run command" options (you can even define tasks as in justfiles, which I personally use a lot). pixi.sh/latest/

15.08.2025 21:38 โ€” ๐Ÿ‘ 2    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

For pyfixest's development, we've been using pixi for a while, which I really enjoy. More or less it is the conda-forge (free & open source) equivalent to uv (it actually runs uv for PyPi dependency resolution). Really fast both for PyPi & conda-forge dependency resolution.

15.08.2025 21:38 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1

This I will still have to explore (as matplotlib does not always auto-scale). Generally there are two options to handle this as of now - users can keep / drop covariates via a function arg, or simply combine many of them into a single "combined" covariate in the estimation process.

13.08.2025 06:50 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@s3alfisc is following 20 prominent accounts