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: NamedTuple

Container for pre-test results of conditional parallel trends assumption.

Attributes:
cvm_statfloat

Cramer von Mises test statistic.

cvm_bootsnumpy.ndarray, optional

Vector of bootstrapped Cramer von Mises test statistics.

cvm_critvalfloat

Cramer von Mises critical value.

cvm_pvalfloat

P-value for Cramer von Mises test.

ks_statfloat

Kolmogorov-Smirnov test statistic.

ks_bootsnumpy.ndarray, optional

Vector of bootstrapped Kolmogorov-Smirnov test statistics.

ks_critvalfloat

Kolmogorov-Smirnov critical value.

ks_pvalfloat

P-value for Kolmogorov-Smirnov test.

cluster_varslist[str], optional

Variables that were clustered on for the test.

x_formulastr, optional

Formula for the X variables used in the test.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

cluster_vars

Variables that were clustered on for the test.

cvm_boots

Bootstrapped Cramer von Mises test statistics.

cvm_critval

Cramer von Mises critical value.

cvm_pval

P-value for Cramer von Mises test.

cvm_stat

Cramer von Mises test statistic.

ks_boots

Bootstrapped Kolmogorov-Smirnov test statistics.

ks_critval

Kolmogorov-Smirnov critical value.

ks_pval

P-value for Kolmogorov-Smirnov test.

ks_stat

Kolmogorov-Smirnov test statistic.

x_formula

Formula for the X variables used in the test.