-
Notifications
You must be signed in to change notification settings - Fork 83
Improve clarity of TWFE explanation #522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Introduced γ as the global intercept to avoid overloading α - Wrapped dataset variable names (district, year, post_treatment) in \text{} for clearer rendering - Improved equation layout with consistent notation and salmon labels - Revised explanatory bullets for consistency with updated notation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #522 +/- ##
=======================================
Coverage 95.19% 95.19%
=======================================
Files 28 28
Lines 2457 2457
=======================================
Hits 2339 2339
Misses 118 118 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…term of the banking dataset notebook
Hey @drbenvincent , dont know how I missed that! I've fixed the "" if you want to check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mercury0100
Addressed issue #516 by improving the TWFE explanation in the
did_pymc_banks.ipynb
notebook.Changes made
Introduced$\gamma$ as the global intercept term to avoid overloading $\alpha$ .
Updated equation to use \text{} for dataset variable names (district, year, post_treatment) to improve readability and rendering.
Revised bullet-point explanations to match the updated notation and ensure consistency (e.g.,$i^{\text{th}}$ instead of $i^{th}$ ).
Clarified distinction between parameters ($\alpha$ , $\beta$ , $\gamma$ , $\Delta$ ) and observed covariates (district, year, post_treatment).
These changes improve equation rendering, remove contradictory notation around$\alpha$ , and make the explanation easier to follow for users who are new to TWFE models
📚 Documentation preview 📚: https://causalpy--522.org.readthedocs.build/en/522/