Docs: Add Staggered DiD sensitivity checks walkthrough - #846
drbenvincent wants to merge 2 commits into
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #846 +/- ##
=======================================
Coverage 94.60% 94.60%
=======================================
Files 80 80
Lines 12764 12764
Branches 770 770
=======================================
Hits 12076 12076
Misses 485 485
Partials 203 203 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- Replace misleading PlaceboInTime reference with clear statement that only PreTreatmentPlaceboCheck and PriorSensitivity apply to staggered DiD - Add "If this check fails" subsection with concrete troubleshooting steps: inspect event-study plot for directional pre-trends, check pre-treatment window sparsity, revisit outcome model specification, and compare results under alternative priors Made-with: Cursor
0f917f5 to
72d51c1
Compare
Adds a sensitivity-analysis section to sc_pymc.ipynb that walks through the pipeline API (EstimateEffect -> SensitivityAnalysis -> GenerateReport) with PlaceboInTime as the SC default check, and documents the other SC-applicable checks (ConvexHullCheck, LeaveOneOut, PlaceboInSpace, PriorSensitivity) with interpretation guidance. Mirrors the structure introduced for Staggered DiD in #846 and links back to the central guide from #818. Includes a runnable pipeline cell and HTML report iframe so the walkthrough demonstrates an end-to-end placebo-in-time check with concrete pass/fail narrative and a five-step "if this check fails" troubleshooting block. Closes #789 Made-with: Cursor
Automated triageRecommendation: Why:
Review focus:
Confidence: high |
|
Ported to the PyMC 6 migration branch as #1187 — a fresh branch off |
…tivity-delta Docs: expand Staggered DiD sensitivity walkthrough (port of #846)
|
@drbenvincent Heads-up: the essence of this PR has been re-implemented on the PyMC 6 migration branch as #1187 (fresh branch off Given that, please avoid merging this PR into |
Summary
Adds a focused sensitivity-check walkthrough for Staggered DiD to the
staggered_did_pymc.ipynbnotebook, addressing #791.This continues the work from #806 (by @arthurmello) and incorporates the review feedback:
PreTreatmentPlaceboCheckwalkthrough using the pipeline API (EstimateEffect→SensitivityAnalysis→GenerateReport)PreTreatmentPlaceboCheckandPriorSensitivityapply to staggered DiD, and that other checks likePlaceboInTimeandLeaveOneOutare for different estimatorsPriorSensitivitySupersedes #806. Closes #791.
Test plan
prek run --all-filespasses (verified locally)Made with Cursor