Commit 81efd2b
docs(cs): record decision to keep cluster= (not deprecate); close TODO row (igerber#614)
Resolves the backlog item "decide whether to formally deprecate
CallawaySantAnna.cluster=X in favor of survey_design=SurveyDesign(psu=X)"
with a decision to KEEP cluster= as the canonical ergonomic single-level
clustering kwarg, and removes the TODO row.
Rationale (recorded in REGISTRY.md's CallawaySantAnna cluster-wiring section):
cluster= matches the field's universal convention (R fixest cluster=~unit,
Stata vce(cluster id), statsmodels cov_type="cluster") and is retained across
all IF-based estimators (CS / EfficientDiD / ImputationDiD / TwoStageDiD). The
cluster= -> SurveyDesign(psu=cluster) synthesis is an internal implementation
detail, not user-facing redundancy; survey_design= is the advanced entry point
(strata / FPC / replicate weights) while bare cluster= is the shorthand for the
common single-level case. This mirrors the HAD survey-API consolidation, which
deprecated only the redundant survey= / weights= entry points and deliberately
kept cluster=.
Docs-only: no source or behavior change.
Claude-Session: https://claude.ai/code/session_01LHDijzf8zHXk5T8ahS2mKi
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d7a6a53 commit 81efd2b
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
| |||
0 commit comments