Skip to content

docs(guides): group_time_effects cells are dicts, not GroupTimeEffect objects - #910

Merged
igerber merged 1 commit into
mainfrom
docs/llms-full-group-time-effects-dict
Nov 25, 2026
Merged

igerber merged 1 commit into
mainfrom
docs/llms-full-group-time-effects-dict

Conversation

@igerber

@igerber igerber commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Correct the CallawaySantAnnaResults.group_time_effects entry in the bundled llms-full.txt guide. It documented the values as GroupTimeEffect objects; every estimator that carries the field stores plain dicts with the keys effect, se, t_stat, p_value, conf_int, n_treated, n_control and skip_reason. Code written from the guide (cell.effect) fails against real results (cell["effect"]).
  • 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. GroupTimeEffect stays exported and unchanged; nothing in the library constructs it.

Methodology references (required if estimator / math changes)

  • Method name(s): N/A - no methodology changes
  • Paper / source link(s): N/A
  • Any intentional deviations from the source (and why): None

Validation

  • Tests added/updated: No test changes. tests/test_guides.py, tests/test_naming_guard.py, tests/test_docs_ia.py, tests/test_v4_diagnostic_family_docs.py, tests/test_practitioner.py and tests/test_changelog_fragments.py pass on this branch.
  • Backtest / simulation / notebook evidence (if applicable): N/A. The key list was taken from a live CallawaySantAnna fit, and every results class with a group_time_effects field is annotated Dict[..., Dict[str, Any]].

Security / privacy

  • Confirm no secrets/PII in this PR: Yes

Changelog

  • changelog.d/ fragment added (or N/A - no user-visible change): Yes

… 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.
@github-actions

Copy link
Copy Markdown

✅ Looks good

No P0/P1 findings or other actionable issues in the supplied diff.

Executive summary

  • The corrected dictionary representation matches CallawaySantAnnaResults and all six cell builders.
  • No estimator, mathematical, inference, or default behavior changes.
  • The changelog fragment follows repository conventions and passes validation.
  • Static contract checks passed; pytest verification was unavailable because pytest is not installed.

Methodology

No findings. The documented keys and skip_reason semantics agree with the result annotation and Methodology Registry’s non-estimable-cell contract (diff_diff/staggered_results.py:L236; docs/methodology/REGISTRY.md:L1276-L1277). The Callaway–Sant’Anna (2021) methodology is unchanged.

Code Quality

No findings. The dictionary-access example correctly reflects the implementation (diff_diff/guides/llms-full.txt:L1597).

Performance

No findings. No computational paths changed.

Maintainability

No findings. Both documentation surfaces now consistently distinguish dictionary cells from the exported GroupTimeEffect class (docs/api/staggered.rst:L97-L105).

Tech Debt

No findings. No new deferred work is introduced.

Security

No findings in the changed content.

Documentation/Tests

No findings. The documentation fragment accurately describes the correction (changelog.d/20261125-llms-full-group-time-effects-dict.md:L1-L7). The changelog validator and static checks passed, including verification that no library call constructs GroupTimeEffect. The reported pytest results could not be independently reproduced in this environment.

@igerber igerber added the ready-for-ci Triggers CI test workflows label Nov 25, 2026
@igerber
igerber merged commit f281cf0 into main Nov 25, 2026
43 of 44 checks passed
@igerber
igerber deleted the docs/llms-full-group-time-effects-dict branch November 25, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ci Triggers CI test workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant