• PyFixest
  • Getting Started
  • Function Reference
  • Tutorials
    • All Tutorials

    • OLS with Fixed Effects
    • Formula Syntax
    • Instrumental Variables
    • Regression Tables
    • Difference-in-Differences
    • Quantile Regression
  • Guides
    • All Guides

    • Choosing a Demeaner Backend
    • Marginal Effects & Hypothesis Testing
    • Regression Decomposition
    • PyFixest on the GPU via JAX
    • PyFixest on the GPU via CuPy
    • Compare Stata & PyFixest
    • Variance Reduction in AB Tests
  • Explanation
    • When Are Fixed Effects Problems Difficult?
    • On Small Sample Corrections
    • Does PyFixest Match fixest?
  • Textbook Replications
    • All Textbook Replications

    • Causal Inference for the Brave and True
    • Causal Inference: The Mixtape
    • The Effect
    • Other Resources
  • Changelog
  • Contributing
  • Acknowledgements
  • Sprint 2026
  • llms.txt
  • Skills.md
Categories
All (7)
AB Testing (1)
fixed effects (1)
Panel (1)
performance (1)

Guides

Practical recipes and deeper dives for PyFixest practitioners.

Task-oriented guides that show you how to accomplish specific goals with PyFixest.

Marginal Effects and Hypothesis Tests via marginaleffects
PyFixest integrates with the excellent marginaleffects package. Among many other things, marginaleffects allows you to compute:
How much do Covariates Matter?
In regression analyses, we often wonder about “how much covariates matter?” for explaining the relationship between a target variable \(D\) and an outcome variable \(Y\).
Choosing a Demeaner Backend
performance
fixed effects

How to pick the right fixed-effects demeaner for your problem.

PyFixest on professional-tier GPUs
PyFixest allows to run the fixed effects demeaning on the GPU via the typed demeaner argument. To do so, you will have to install jax and jaxblib, for example by typing pip…
PyFixest on the GPU via CuPy
Besides JAX, it is possible to run PyFixest on the GPU via CuPy (linux and windows). Instead of applying the alternating projections algorithm to demean fixed effects, CuPy…
Translating Stata to PyFixest
This guide will focus on how to replicate the regression results you would get in Stata with the Python package pyfixest and assumes you know how to do things like install…
Variance Reduction in AB Tests
Panel
AB Testing

How to reduce the variance of estimators in AB tests and beyond using exogenous control variables via CUPED, linear regression, and fixed effects estimators.

No matching items