Skip to content

Commit 302c411

Browse files
authored
Merge pull request #224 from igerber/release/v2.7.4
Bump version to 2.7.4
2 parents 5d5bfa0 + 0e42937 commit 302c411

File tree

5 files changed

+33
-4
lines changed

5 files changed

+33
-4
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.7.4] - 2026-03-21
11+
12+
### Added
13+
- **Survey/sampling weights support** (`survey_design` parameter) for `DifferenceInDifferences` and `TwoWayFixedEffects`
14+
- Taylor-series linearization (TSL) variance estimation with stratified multi-stage designs
15+
- Probability weights (pweight), frequency weights (fweight), and analytic weights (aweight)
16+
- Finite population correction (FPC) support
17+
- PSU-based clustering with lonely PSU handling
18+
- New `diff_diff/survey.py` module with `SurveyDesign` and `compute_survey_vcov`
19+
- **EfficientDiD validation tests** against Chen, Sant'Anna & Xie (2025) using HRS dataset
20+
- HRS validation fixture with provenance documentation
21+
- Shared DGP helper in `tests/helpers/edid_dgp.py`
22+
- Simulation-based power analysis for all registry-backed estimators (MDE, sample size, power curves); unregistered estimators supported via custom `data_generator` and `result_extractor`
23+
24+
### Changed
25+
- Extend power analysis to support all registry-backed estimators with `result_extractor` parameter
26+
- Update power analysis tutorial with simulation-based features
27+
- Reject `absorb + fixed_effects` combination (FWL violation) in both survey and non-survey paths
28+
29+
### Fixed
30+
- TWFE cluster-as-PSU injection for no-PSU survey designs
31+
- Non-unique PSU labels across strata with `nest=False`
32+
- FPC validation moved to `compute_survey_vcov` for effective PSU structure
33+
- Survey HC1 meat formula and weighted rank-deficiency handling
34+
- Zero-SE inference, full-census FPC, fweight contract corrections
35+
- Bootstrap+survey fallback in MultiPeriodDiD
36+
- DDD `_snap_n` floor mismatch and `n_per_cell` suppression scope
37+
1038
## [2.7.3] - 2026-03-19
1139

1240
### Added
@@ -923,6 +951,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
923951
- `to_dict()` and `to_dataframe()` export methods
924952
- `is_significant` and `significance_stars` properties
925953

954+
[2.7.4]: https://github.com/igerber/diff-diff/compare/v2.7.3...v2.7.4
926955
[2.7.3]: https://github.com/igerber/diff-diff/compare/v2.7.2...v2.7.3
927956
[2.7.2]: https://github.com/igerber/diff-diff/compare/v2.7.1...v2.7.2
928957
[2.7.1]: https://github.com/igerber/diff-diff/compare/v2.7.0...v2.7.1

diff_diff/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
Bacon = BaconDecomposition
188188
EDiD = EfficientDiD
189189

190-
__version__ = "2.7.3"
190+
__version__ = "2.7.4"
191191
__all__ = [
192192
# Estimators
193193
"DifferenceInDifferences",

docs/llms-full.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> A Python library for Difference-in-Differences causal inference analysis. Provides sklearn-like estimators with statsmodels-style output for econometric analysis.
44

5-
- Version: 2.7.3
5+
- Version: 2.7.4
66
- Repository: https://github.com/igerber/diff-diff
77
- License: MIT
88
- Dependencies: numpy, pandas, scipy (no statsmodels dependency)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "diff-diff"
7-
version = "2.7.3"
7+
version = "2.7.4"
88
description = "Difference-in-Differences causal inference with sklearn-like API. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies, parallel trends."
99
readme = "README.md"
1010
license = "MIT"

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diff_diff_rust"
3-
version = "2.7.3"
3+
version = "2.7.4"
44
edition = "2021"
55
description = "Rust backend for diff-diff DiD library"
66
license = "MIT"

0 commit comments

Comments
 (0)