Repository navigation
docs(guides): group_time_effects cells are dicts, not GroupTimeEffect objects - #910
Conversation
… objects The bundled llms-full.txt guide documented CallawaySantAnnaResults.group_time_effects as dict[(g,t), GroupTimeEffect]. Every estimator that carries the field stores plain dicts (keys effect, se, t_stat, p_value, conf_int, n_treated, n_control, skip_reason), and nothing in the library constructs GroupTimeEffect. Code written from the guide (cell.effect) fails against real results (cell["effect"]). Correct the guide entry, and say the same in the GroupTimeEffect section of docs/api/staggered.rst, which described the class as the container for group-time effects. Docs only; no behavior change. Adds a changelog fragment.
✅ Looks goodNo P0/P1 findings or other actionable issues in the supplied diff. Executive summary
MethodologyNo findings. The documented keys and Code QualityNo findings. The dictionary-access example correctly reflects the implementation ( PerformanceNo findings. No computational paths changed. MaintainabilityNo findings. Both documentation surfaces now consistently distinguish dictionary cells from the exported Tech DebtNo findings. No new deferred work is introduced. SecurityNo findings in the changed content. Documentation/TestsNo findings. The documentation fragment accurately describes the correction ( |
Summary
CallawaySantAnnaResults.group_time_effectsentry in the bundledllms-full.txtguide. It documented the values asGroupTimeEffectobjects; every estimator that carries the field stores plain dicts with the keyseffect,se,t_stat,p_value,conf_int,n_treated,n_controlandskip_reason. Code written from the guide (cell.effect) fails against real results (cell["effect"]).GroupTimeEffectsection ofdocs/api/staggered.rst, which described the class as the container for group-time effects.GroupTimeEffectstays exported and unchanged; nothing in the library constructs it.Methodology references (required if estimator / math changes)
Validation
tests/test_guides.py,tests/test_naming_guard.py,tests/test_docs_ia.py,tests/test_v4_diagnostic_family_docs.py,tests/test_practitioner.pyandtests/test_changelog_fragments.pypass on this branch.CallawaySantAnnafit, and every results class with agroup_time_effectsfield is annotatedDict[..., Dict[str, Any]].Security / privacy
Changelog