Skip to contents

Unadjusted blocked-design incidence inference using the simple mean-difference point estimate with a block-stratified standard error.

Legacy inference class. This class is retained for backwards compatibility and is not comprehensively tested by the package comprehensive-test harness.

The standard error is the extended Robins (1988) variance estimator of Azriel, Krieger and Kapelner (2026, Equations 12-13): the per-block Robins bound plus a Jensen term. It is conservative only when blocks are large enough to estimate each block's success probabilities. With small blocks it is not: on matched pairs (block size 2) the per-block term is identically zero, and in a null simulation (n = 200, 100 pairs) the standard error was about 0.68 of the estimate's true standard deviation, giving a 5% Wald test a size of about 0.14-0.18 and 95% intervals about 86% coverage. With blocks of about 10 or more it is conservative. For small blocks or matched pairs prefer InferenceIncidCMH, whose variance estimator is conservative in finite samples for any balanced design.

Small-sample behaviour

How fast the size (and coverage) error of each procedure is expected to vanish as the effective sample size \(n_{eff}\) grows, from EDI's convergence-rate registry (inference_convergence_expectation()). Exact procedures are valid at every n by construction; the others are asymptotic, so a small-sample excess is expected, and its constant is not given by an order. The table is the expectation for a balanced complete-randomization design; it is not a measured size. Reference keys are explained under References.

ProcedureRegimeError orderEffective nRegularityBasisReferences
randfinite sampleexacteventsregulartheory[Fisher1935], [LehmannRomano2005]
waldasymptotic\(O(n_{eff}^{-1})\)eventsregularassumed default[Hall1992]
jackknifeasymptotic\(O(n_{eff}^{-1})\)eventsregularassumed default[ShaoTu1995]
bootstrapasymptotic\(O(n_{eff}^{-1})\)eventsregularassumed default[Hall1992]
bayes_bootasymptotic\(O(n_{eff}^{-1})\)eventsregularassumed default[Rubin1981], [Lo1987]
rand_bootstrapasymptotic\(O(n_{eff}^{-1})\)eventsregularassumed default[Hall1992], [Kallus2018]

The point estimate's bias is of order \(O(n_{eff}^{-1})\) (assumed default: [CoxSnell1968]).

Rows with basis assumed default: the order shown is the procedure's rate in a regular parametric model, and the cited works establish it for that case only. EDI has not derived it for this class.

References

Azriel, D., Krieger, A. M. and Kapelner, A. (2026). Optimal designs with robust inference for binary treatment effects. arXiv:2607.05768.

Robins, J. M. (1988). Confidence intervals for causal parameters. Statistics in Medicine, 7(7), 773-785.

[Fisher1935] Fisher, R. A. (1935). The Design of Experiments. Oliver and Boyd.

[LehmannRomano2005] Lehmann, E. L., and Romano, J. P. (2005). Testing Statistical Hypotheses (3rd ed.). Springer.

[Hall1992] Hall, P. (1992). The Bootstrap and Edgeworth Expansion. Springer.

[ShaoTu1995] Shao, J., and Tu, D. (1995). The Jackknife and Bootstrap. Springer.

[Rubin1981] Rubin, D. B. (1981). "The Bayesian Bootstrap." The Annals of Statistics, 9(1), 130-134.

[Lo1987] Lo, A. Y. (1987). "A Large Sample Study of the Bayesian Bootstrap." The Annals of Statistics, 15(1), 360-375.

[Kallus2018] Kallus, N. (2018). "Optimal a priori balance in the design of controlled experiments." Journal of the Royal Statistical Society: Series B, 80(1), 85-112. Section 5 ("Algorithms for inference"), Algorithm 4.

[CoxSnell1968] Cox, D. R., and Snell, E. J. (1968). "A General Definition of Residuals." Journal of the Royal Statistical Society: Series B, 30(2), 248-265 (discussion 265-275).

Super class

Inference -> InferenceIncidExtendedRobins

Methods

+ inherited public methods from Inference


InferenceIncidExtendedRobins$compute_asymp_confidence_interval()

Uses the randomization-CI layer's two-sided p-value contract (InferenceRandCI's version, not InferenceRand's): for incidence responses it does not refuse outright; the default p-value comes from the randomization draws, and the Zhang exact randomization test is used only when type = "Zhang" is passed explicitly (where applicable). This matches this class's pre-migration old-ladder behavior of not refusing (it inherited from InferenceAllSimpleAverageDiff, whose own pin was already corrected to InferenceRandCI – see that file's identical rationale). This class independently composes the same components rather than truly inheriting InferenceAllSimpleAverageDiff, so it had its own stale copy of the old InferenceRand pin (same bug as InferenceIncidWald/InferenceIncidCMH, fixed alongside them even though this class's own golden test's design doesn't happen to trigger the Zhang-eligible path that would have caught it).

Uses the shared asymptotic confidence-interval contract; see InferenceAsymp.

Usage

InferenceIncidExtendedRobins$compute_asymp_confidence_interval(alpha = 0.05)

Arguments

alpha

Numeric. Significance level (default 0.05).


InferenceIncidExtendedRobins$compute_asymp_two_sided_pval()

Uses the shared asymptotic two-sided p-value contract; see InferenceAsymp.

Usage

InferenceIncidExtendedRobins$compute_asymp_two_sided_pval(delta = 0)

Arguments

delta

Numeric. Null treatment effect value (default 0).


InferenceIncidExtendedRobins$new()

Initialize Extended Robins blocked-design incidence inference.

Usage

InferenceIncidExtendedRobins$new(
  des_obj,
  model_formula = NULL,
  verbose = FALSE
)

Arguments

des_obj

A completed design object.

model_formula

Optional formula for covariate adjustment.

verbose

Logical. Whether to print progress messages.

Returns

A new InferenceIncidExtendedRobins object.


InferenceIncidExtendedRobins$clone()

The objects of this class are cloneable with this method.

Usage

InferenceIncidExtendedRobins$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

seq_des = DesignSeqOneByOneRandomBlockSize$new(n = 20, response_type = 'incidence',
  strata_cols = 'x1')
for (i in 1:20) {
  seq_des$add_one_subject_to_experiment_and_assign(
    data.frame(x1 = factor(rep(1:2, 10)[i], levels=1:2)))
}
seq_des$add_all_subject_responses(rbinom(20, 1, 0.5))
inf = InferenceIncidExtendedRobins$new(seq_des)
inf$compute_estimate()
#> [1] -0.08080808