diff_diff.Diagnostic#

class diff_diff.Diagnostic[source]#

Bases: object

Marker 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() and to_dataframe() and are exempt from the quintet BY TYPE, so consumers route with isinstance(result, Diagnostic) instead of result-class-name special-casing. The contract is enforced by the roster test in tests/test_diagnostic_marker.py (ledger row M-091), not by the type system - this class intentionally has no methods.

Methods

__init__()#
classmethod __new__(*args, **kwargs)#