diff_diff.Diagnostic#
- class diff_diff.Diagnostic[source]#
Bases:
objectMarker base for diagnostic RESULT containers (spec section 3.5).
diff-diff distinguishes three object kinds: estimators, estimator results, and diagnostics. Exactly one bit is load-bearing: an estimator’s result carries a causal-effect inference row (the canonical quintet
att/se/t_stat/p_value/conf_int); a diagnostic’s result does NOT - it assesses a design, an identifying assumption, or robustness.Marked classes expose
summary()andto_dataframe()and are exempt from the quintet BY TYPE, so consumers route withisinstance(result, Diagnostic)instead of result-class-name special-casing. The contract is enforced by the roster test intests/test_diagnostic_marker.py(ledger row M-091), not by the type system - this class intentionally has no methods.Methods
__init__()- __init__()#
- classmethod __new__(*args, **kwargs)#