moderndid.MPPretestResult#
- class moderndid.MPPretestResult(cvm_stat: float, cvm_boots: ndarray | None, cvm_critval: float, cvm_pval: float, ks_stat: float, ks_boots: ndarray | None, ks_critval: float, ks_pval: float, cluster_vars: list[str] | None = None, x_formula: str | None = None)[source]#
Bases:
NamedTupleContainer for pre-test results of conditional parallel trends assumption.
- Attributes:
- cvm_stat
float Cramer von Mises test statistic.
- cvm_boots
numpy.ndarray, optional Vector of bootstrapped Cramer von Mises test statistics.
- cvm_critval
float Cramer von Mises critical value.
- cvm_pval
float P-value for Cramer von Mises test.
- ks_stat
float Kolmogorov-Smirnov test statistic.
- ks_boots
numpy.ndarray, optional Vector of bootstrapped Kolmogorov-Smirnov test statistics.
- ks_critval
float Kolmogorov-Smirnov critical value.
- ks_pval
float P-value for Kolmogorov-Smirnov test.
- cluster_vars
list[str], optional Variables that were clustered on for the test.
- x_formula
str, optional Formula for the X variables used in the test.
- cvm_stat
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Variables that were clustered on for the test.
Bootstrapped Cramer von Mises test statistics.
Cramer von Mises critical value.
P-value for Cramer von Mises test.
Cramer von Mises test statistic.
Bootstrapped Kolmogorov-Smirnov test statistics.
Kolmogorov-Smirnov critical value.
P-value for Kolmogorov-Smirnov test.
Kolmogorov-Smirnov test statistic.
Formula for the X variables used in the test.