diff_diff.SensitivityResults#
- class diff_diff.SensitivityResults[source]#
Bases:
objectResults from sensitivity analysis over a grid of M values.
Contains bounds and confidence intervals for each M value, plus the breakdown value.
- M_values#
Grid of M parameter values.
- Type:
np.ndarray
Methods
__init__(M_values, bounds, robust_cis, ...)plot([ax, show_bounds, show_ci, breakdown_line])Plot sensitivity analysis results.
print_summary()Print summary to stdout.
summary()Generate formatted summary.
to_dataframe()Convert to DataFrame with one row per M value.
Attributes
has_breakdownCheck if there is a finite breakdown value.
- __init__(M_values, bounds, robust_cis, breakdown_M, method, original_estimate, original_se, alpha=0.05)#
- classmethod __new__(*args, **kwargs)#