moderndid.didinter.container.HeterogeneityResult#
- class moderndid.didinter.container.HeterogeneityResult(horizon: int, covariates: list[str], estimates: ndarray, std_errors: ndarray, t_stats: ndarray, ci_lower: ndarray, ci_upper: ndarray, n_obs: int, f_pvalue: float)[source]#
Bases:
NamedTupleContainer for heterogeneous effects analysis.
- Attributes:
- horizon
int Effect horizon analyzed.
- covariates
list[str] Covariate names.
- estimates
numpy.ndarray Coefficient estimates for each covariate.
- std_errors
numpy.ndarray Standard errors for each coefficient.
- t_stats
numpy.ndarray T-statistics for each coefficient.
- ci_lower
numpy.ndarray Lower confidence interval bounds.
- ci_upper
numpy.ndarray Upper confidence interval bounds.
- n_obs
int Number of observations in the regression.
- f_pvalue
float P-value from joint F-test that all covariate coefficients are zero.
- horizon
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Lower confidence interval bounds.
Upper confidence interval bounds.
Covariate names.
Coefficient estimates for each covariate.
P-value from joint F-test that all covariate coefficients are zero.
Effect horizon analyzed.
Number of observations in the regression.
Standard errors for each coefficient.
T-statistics for each coefficient.