Skip to content

Commit a735710

Browse files
committed
Bump version to 1.2.0
New in v1.2.0: - Pre-Trends Power Analysis (Roth 2022) - PreTrendsPower class with MDV and power curve computation - compute_pretrends_power() and compute_mdv() convenience functions - plot_pretrends_power() visualization - Integration with Honest DiD - Tutorial and API documentation See CHANGELOG.md for full details.
1 parent 50d54f2 commit a735710

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.2.0] - 2026-01-07
9+
10+
### Added
11+
- **Pre-Trends Power Analysis** (Roth 2022) for assessing informativeness of pre-trends tests
12+
- `PreTrendsPower` class for computing power and minimum detectable violation (MDV)
13+
- `PreTrendsPowerResults` dataclass with power, MDV, and test statistics
14+
- `PreTrendsPowerCurve` for power curves across violation magnitudes
15+
- `compute_pretrends_power()` and `compute_mdv()` convenience functions
16+
- Multiple violation types: `linear`, `constant`, `last_period`, `custom`
17+
- Integration with Honest DiD via `sensitivity_to_honest_did()` method
18+
- `plot_pretrends_power()` visualization for power curves
19+
- Tutorial notebook: `docs/tutorials/07_pretrends_power.ipynb`
20+
- Full API documentation: `docs/api/pretrends.rst`
21+
22+
**Reference**: Roth, J. (2022). "Pretest with Caution: Event-Study Estimates after Testing for Parallel Trends." *American Economic Review: Insights*, 4(3), 305-322.
23+
24+
### Fixed
25+
- **Reference period handling in pre-trends analysis**: Fixed bug where reference period was incorrectly assigned `avg_se` instead of being excluded from power calculations. Now properly excludes the omitted reference period from the joint Wald test.
26+
827
## [1.1.1] - 2026-01-06
928

1029
### Fixed
@@ -215,6 +234,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
215234
- `to_dict()` and `to_dataframe()` export methods
216235
- `is_significant` and `significance_stars` properties
217236

237+
[1.2.0]: https://github.com/igerber/diff-diff/compare/v1.1.1...v1.2.0
238+
[1.1.1]: https://github.com/igerber/diff-diff/compare/v1.1.0...v1.1.1
218239
[1.1.0]: https://github.com/igerber/diff-diff/compare/v1.0.2...v1.1.0
219240
[1.0.2]: https://github.com/igerber/diff-diff/compare/v1.0.1...v1.0.2
220241
[1.0.1]: https://github.com/igerber/diff-diff/compare/v1.0.0...v1.0.1

diff_diff/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
plot_sensitivity,
9999
)
100100

101-
__version__ = "1.1.1"
101+
__version__ = "1.2.0"
102102
__all__ = [
103103
# Estimators
104104
"DifferenceInDifferences",

pyproject.toml

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

55
[project]
66
name = "diff-diff"
7-
version = "1.1.1"
7+
version = "1.2.0"
88
description = "A library for Difference-in-Differences causal inference analysis"
99
readme = "README.md"
1010
license = "MIT"

0 commit comments

Comments
 (0)