Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions diff_diff/bacon.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def __init__(self, weights: str = "approximate"):
----------
weights : str, default="approximate"
Weight calculation method:

- "approximate": Fast simplified formula (default)
- "exact": Variance-based weights from Goodman-Bacon (2021)
"""
Expand Down
2 changes: 1 addition & 1 deletion diff_diff/chaisemartin_dhaultfoeuille_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
cv_label = f"CV (SE/|{overall_row_label}|):"
cv_label = f"CV (SE/abs({overall_row_label})):"
lines.append(f"{cv_label:<25} {cv:>10.4f}")

lines.append("")
Expand Down
2 changes: 1 addition & 1 deletion diff_diff/continuous_did_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion diff_diff/efficient_did_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion diff_diff/imputation_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
6 changes: 3 additions & 3 deletions diff_diff/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

# Add significance codes
lines.extend(
Expand Down Expand Up @@ -656,7 +656,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

# Add significance codes
lines.extend(
Expand Down Expand Up @@ -1052,7 +1052,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

# Show top unit weights
if self.unit_weights:
Expand Down
2 changes: 1 addition & 1 deletion diff_diff/stacked_did_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion diff_diff/staggered_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion diff_diff/staggered_triple_diff_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion diff_diff/sun_abraham.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion diff_diff/trop_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

# Add significance codes
lines.extend(
Expand Down
2 changes: 1 addition & 1 deletion diff_diff/two_stage_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def summary(self, alpha: Optional[float] = None) -> str:

cv = self.coef_var
if np.isfinite(cv):
lines.append(f"{'CV (SE/|ATT|):':<25} {cv:>10.4f}")
lines.append(f"{'CV (SE/abs(ATT)):':<25} {cv:>10.4f}")

lines.append("")

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/18_geo_experiments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
"---------------------------------------------------------------------------\n",
"\n",
"95% Confidence Interval: [297.5213, 326.1858]\n",
"CV (SE/|ATT|): 0.0234\n",
"CV (SE/abs(ATT)): 0.0234\n",
"\n",
"---------------------------------------------------------------------------\n",
" Top Unit Weights (Synthetic Control) \n",
Expand Down
Loading