diff_diff.QUGTestResults#
- class diff_diff.QUGTestResults[source]#
Bases:
objectResult of
qug_test()(paper Theorem 4).The QUG test rejects
H_0: d_lower = 0when the order-statistic ratioT = D_{(1)} / (D_{(2)} - D_{(1)})exceeds1/alpha - 1. Under the null, the asymptotic limit law ofTis the ratio of two independent Exp(1) random variables, with CDFF(t) = t / (1 + t), sop_value = 1 / (1 + T).- t_stat#
D_{(1)} / (D_{(2)} - D_{(1)}). NaN when fewer than 2 non-zero observations remain or when the two smallest doses tie.- Type:
- critical_value#
1 / alpha - 1. Populated even when the statistic is NaN so downstream readers can inspect the decision threshold.- Type:
Methods
__init__(t_stat, p_value, reject, alpha, ...)print_summary()Print the summary to stdout.
summary()Formatted summary table.
to_dataframe()Return a one-row DataFrame of the result dict.
to_dict()Return results as a JSON-safe dict.
Attributes
- __init__(t_stat, p_value, reject, alpha, critical_value, n_obs, n_excluded_zero, d_order_1, d_order_2)#
- classmethod __new__(*args, **kwargs)#