diff_diff.RegressionDiscontinuityResults#

class diff_diff.RegressionDiscontinuityResults[source]#

Bases: BaseResults

Results of a regression discontinuity fit (sharp or fuzzy; the estimand field names which one, and first_stage* fields are populated on fuzzy fits only).

Canonical inference fields (att, se, t_stat, p_value, conf_int) all describe the ROBUST bias-corrected row: att is the bias-corrected point estimate and conf_int is centered on it (see module docstring for the binding rationale and the deviation from rdrobust’s printed headline). The conventional row is exposed as explicit *_conventional fields. The (rarely used) middle “Bias-Corrected” row shares its coefficient with att (both are tau_bc) and its standard error with se_conventional - only its inference triple carries the *_bias_corrected suffix (t_stat_bias_corrected, p_value_bias_corrected, conf_int_bias_corrected); there are deliberately no redundant att_bias_corrected / se_bias_corrected fields. Together the three rows mirror rdrobust’s output exactly.

Methods

__init__(att, se, t_stat, p_value, conf_int, ...)

print_summary()

summary()

Human-readable summary with the three-row rdrobust table.

to_dataframe()

to_dict()

Flat scalar dict; confidence intervals split into lower/upper.

Attributes

beta_p_left

beta_p_right

beta_t_p_left

beta_t_p_right

covariate_coefficients

covariates

covariates_dropped

first_stage

first_stage_conf_int

first_stage_conf_int_bias_corrected

first_stage_conf_int_conventional

first_stage_conventional

first_stage_covariate_coefficients

first_stage_p_value

first_stage_p_value_bias_corrected

first_stage_p_value_conventional

first_stage_se

first_stage_se_conventional

first_stage_t_stat

first_stage_t_stat_bias_corrected

first_stage_t_stat_conventional

att

se

t_stat

p_value

conf_int

alpha

att_conventional

se_conventional

t_stat_conventional

p_value_conventional

conf_int_conventional

t_stat_bias_corrected

p_value_bias_corrected

conf_int_bias_corrected

se_robust

h_left

h_right

b_left

b_right

n_obs

n_left

n_right

n_h_left

n_h_right

n_b_left

n_b_right

n_unique_left

n_unique_right

n_dropped

cutoff

p

q

kernel

bwselect

vcov_type

nnmatch

masspoints

bwcheck

bwrestrict

scaleregul

h_input

b_input

rho_input

estimand

sharpbw

treatment_col

covs_drop

__init__(att, se, t_stat, p_value, conf_int, alpha, att_conventional, se_conventional, t_stat_conventional, p_value_conventional, conf_int_conventional, t_stat_bias_corrected, p_value_bias_corrected, conf_int_bias_corrected, se_robust, h_left, h_right, b_left, b_right, n_obs, n_left, n_right, n_h_left, n_h_right, n_b_left, n_b_right, n_unique_left, n_unique_right, n_dropped, cutoff, p, q, kernel, bwselect, vcov_type, nnmatch, masspoints, bwcheck, bwrestrict, scaleregul, h_input, b_input, rho_input, estimand, sharpbw, treatment_col, covs_drop, first_stage=None, first_stage_se=None, first_stage_t_stat=None, first_stage_p_value=None, first_stage_conf_int=None, first_stage_conventional=None, first_stage_se_conventional=None, first_stage_t_stat_conventional=None, first_stage_p_value_conventional=None, first_stage_conf_int_conventional=None, first_stage_t_stat_bias_corrected=None, first_stage_p_value_bias_corrected=None, first_stage_conf_int_bias_corrected=None, covariates=None, covariates_dropped=None, covariate_coefficients=None, first_stage_covariate_coefficients=None, beta_p_left=None, beta_p_right=None, beta_t_p_left=None, beta_t_p_right=None)#
Parameters:
Return type:

None

classmethod __new__(*args, **kwargs)#