Causal setup and inference
The package estimates mean potential outcomes and average treatment effects for categorical treatments. Calibration adjusts the nuisance estimates before they enter a doubly robust estimator.
Data and targets
Let \(W\) denote baseline covariates, \(A\) treatment, and \(Y\) the outcome. For treatment level \(a\), write
Under consistency, conditional exchangeability, and positivity, the mean potential outcome is \(\psi_a=\mathbb{E}[Y(a)]=\mathbb{E}[\mu_a(W)]\). The treatment-versus-control contrast is \(\psi_a-\psi_c\), where \(c\) is the control level. For binary treatment, this is the ATE.
The calibrated estimator
First estimate the outcome regressions and treatment probabilities with cross-fitting. The package then calibrates the outcome predictions and inverse probability weights and computes
Here \(\widetilde\mu_a\) is the calibrated outcome regression and \(\widetilde\alpha_a\) is the calibrated estimate of \(1/\pi_a\). Subtracting the two arm estimates gives the treatment contrast.
Why calibration helps
Consistency of a standard doubly robust estimator requires only one of the two nuisance estimators to be consistent. Its usual asymptotic normality result requires both to converge sufficiently quickly. Calibration weakens this requirement: under the paper's conditions, one nuisance estimator can converge slowly or inconsistently if the other is estimated sufficiently well.
Outcome calibration fits a one-dimensional adjustment to the outcome predictions. Inverse-weight calibration fits a monotone transformation of the propensity predictions using a loss for inverse probability weights. You can add these adjustments to existing cross-fitted predictions without retraining the original models.
Confidence intervals
The default is the V-fold jackknife with V = 10. Nuisance predictions are cross-fitted once on the full dataset and held fixed. Each deletion refits calibration and recomputes the final estimates. Intervals use Student-t critical values with V − 1 degrees of freedom, following Li, Ertefaie, and van der Laan (2026).
| Method | Option | Use |
|---|---|---|
| V-fold jackknife | inference="jackknife" | Default; 10 balanced deletion groups and Student-t intervals. |
| Bootstrap | inference="bootstrap" | Resamples observations and refits calibration; uses 200 replicates by default. |
| Wald | inference="wald" | Computes intervals from estimated influence values; use when both nuisance estimators are consistent. |
Set jackknife_folds to change V; it is independent of n_folds, which controls nuisance cross-fitting. Bootstrap intervals also keep the initial predictions fixed. Set conf_level to change the confidence level from 0.95.
Doubly robust inference via calibration gives the assumptions and asymptotic results. Related work includes isotonic calibration of inverse probability weights and earlier methods for doubly robust inference.