• 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
    • 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
  • llms.txt
  • Skills.md
Categories
All (5)
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.

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