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

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

    • 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 (4)

Textbook Replications

Reproduce textbook examples and classic empirical results with PyFixest.

Each replication follows a published textbook, so you can read along and compare code.

Causal Inference for the Brave and True
In this example we replicate the results of the great (freely available reference!) Causal Inference for the Brave and True - Chapter 14. Please refer to the original text…
The Mixtape with PyFixest
In this notebook, we translate some of the Python code in Scott Cunningham’s mixtape to PyFixest.
Replicating Examples from “The Effect”
This notebook replicates code examples from Nick Huntington-Klein’s book on causal inference, The Effect.
Learning Econometrics with PyFixest
A few classes and textbooks have adopted PyFixest for teaching. And for core textbooks in causal inference that have not (yet =) ) , we have (or are planning to) write…
No matching items