cleverly.inference.multiplier_critical_value#
- cleverly.inference.multiplier_critical_value(influence_curves: ndarray[tuple[Any, ...], dtype[float64]], std_errors: ndarray[tuple[Any, ...], dtype[float64]], *, n: int, cluster: ndarray[tuple[Any, ...], dtype[int64]] | None = None, alpha: float = 0.05, n_replicates: int = 1000, kind: Literal['rademacher', 'mammen', 'normal'] = 'rademacher', random_state: int | None = None) float[source]#
The
1 - alphaquantile of the max-t statistic.- Parameters:
- influence_curves
ndarray (n, k)influence curves, one column per estimand.- std_errors
ndarray (k,)pointwise standard errors.- n
int Number of observations.
- cluster
ndarrayorNone (n,)cluster codes. Weights are drawn per cluster when given.- alpha
float Joint significance level.
- n_replicates
int Multiplier draws.
- kind{“rademacher”, “mammen”, “normal”}, default=”rademacher”
Distribution of the multiplier weights.
- random_state
intorNone Seed for those draws.
- influence_curves
- Returns:
floatThe
1 - alphaquantile of the max-t statistic across estimands.