Cluster Jackknife: Resampling & Variance Estimation
- Cluster jackknife is a family of resampling techniques that treats clusters as the fundamental unit to robustly estimate variance and assess model sensitivity.
- It computes leave-one-cluster-out estimates to construct conservative variance estimators such as CV₃ and CV₃J, thereby mitigating issues from cluster heterogeneity.
- It leverages cluster sufficient statistics for computational efficiency, making it applicable in linear, nonlinear, and multiway clustered models.
Cluster jackknife is a family of resampling, variance-estimation, and diagnostic procedures that treats the cluster—not the individual observation—as the operative unit of deletion. In clustered regression models, its canonical form is the delete-one-cluster jackknife that generates leave-one-cluster-out estimates and uses their dispersion to construct cluster-robust variance estimators such as CV and CV (MacKinnon et al., 2022). In the broader literature, the same logic is adapted to settings in which the relevant unit is a spatial block, a treatment-assignment cluster, a background source in strong lensing, or even a synthetic subsample used as a computational device for massive data (Mohammad et al., 2021, Nishida et al., 1 May 2025, Wu et al., 2023).
1. Cluster as the Fundamental Unit
In the standard clustered linear regression setup, there are disjoint clusters indexed by , with cluster containing observations and total sample size . The model is written at the cluster level as
and OLS takes the stacked form
A central object is the cluster score
so that the distribution of 0 depends on disturbances only through the cluster scores. Under correct specification and cluster independence,
1
This formulation makes the conceptual point that under clustered dependence the effective observational unit for inference is the cluster. The same perspective motivates cluster-level leverage, partial leverage, and influence diagnostics. Cluster leverage is defined as
2
where 3 is the 4-th diagonal block of the hat matrix. Its average is 5, since 6. For a coefficient 7, cluster partial leverage is
8
so 9 and the average is 0. High 1 or 2 indicates that a cluster has unusually large potential influence on fitted values or on the coefficient of interest. Realized influence is then examined through the delete-one-cluster estimator
3
with large deviations 4 signaling that results are sensitive to cluster 5 (MacKinnon et al., 2022).
2. Jackknife Variance Estimators
The conventional Liang–Zeger style cluster-robust variance estimator, denoted CV6, is
7
where 8. CV9 is a sandwich estimator, not a jackknife estimator.
The cluster jackknife estimator CV0 replaces raw empirical scores with leave-one-cluster variability: 1 An equivalent score-based expression is
2
where 3 and 4 is the 5-th block of the residual-maker 6. A closely related estimator is
7
The distinction between CV8 and CV9 is only the centering point, 0 versus 1. Their difference is positive semidefinite, so CV2 is weakly more conservative. In finite samples, both are generally more conservative than CV3, and the simulations summarized in the literature report lower rejection frequencies for CV4 and CV5, especially when clusters are heterogeneous or 6 is modest. The same literature also emphasizes that CV7 is the cluster analogue of HC8, while CV9 plays the role of a simple sandwich estimator (MacKinnon et al., 2022).
3. Computation and Software
A naive implementation of cluster jackknife would re-estimate the model 0 times. The computational advance in the modern literature is to exploit cluster sufficient statistics,
1
so that once 2 and 3 are available, each leave-one-cluster estimate requires only a 4 subtraction, a 5 subtraction, one inversion of a 6 matrix, and one matrix–vector multiplication. Cluster leverage is likewise computed from
7
without forming the full 8 hat matrix. The same computations deliver influence measures, CV9, and CV0. The paper emphasizes that computing CV1 as a jackknife is simpler and usually faster than computing it via cluster-specific inverses of 2 (MacKinnon et al., 2022).
| Context | Software | Reported functionality |
|---|---|---|
| Linear regression with clustered disturbances | summclust |
Computes 3, 4, 5, 6, CV7, CV8, and CV9 |
| Staggered-adoption DiD / CSDID | csdidjack, didjack |
Computes cluster-jackknife standard errors for aggregated ATT |
| Logistic regression | logitjack |
Reports CV0, CV1L, optionally CV2, and WCLR/WCLU procedures |
| Two-way clustered linear regression | twowayjack |
Reports CV3 and CV4 for scalar hypotheses |
In nonlinear and multiway settings, full delete-one-cluster re-estimation can be expensive. For clustered logit, a linearized cluster-jackknife variance estimator CV5L replaces exact leave-one-cluster maximum-likelihood estimates by first-order approximations based on cluster scores and Hessians, and the simulations report that CV6L is usually very close to CV7 while being much cheaper to compute (MacKinnon et al., 2024). For two-way clustering, twowayjack implements a three-component cluster-jackknife construction and a max-se rule that always yields defined scalar tests, while csdidjack and didjack apply leave-one-cluster-out recomputation to the aggregated ATT in Callaway–Sant’Anna Difference-in-Differences estimation (MacKinnon et al., 2024, Karim et al., 12 Feb 2026).
4. Generalizations in Econometrics
In staggered-adoption DiD, the cluster jackknife is applied to the aggregated CSDID estimator. If 8 denotes the full-sample aggregated ATT and 9 is the estimate obtained after omitting cluster 0, the proposed CV1 variance is
2
The simulation evidence in that paper shows that default asymptotic and multiplier-bootstrap inference can reject a true null far too often when clusters or treated clusters are few, whereas the cluster jackknife greatly improves inference (Karim et al., 12 Feb 2026).
For clustered logistic regression, the exact cluster jackknife is defined by recomputing the logit estimator 3 times, once per omitted cluster, and using
4
Because that can be computationally demanding, the paper develops the linearized estimator CV5L and linearized wild cluster bootstrap procedures WCLR and WCLU, including score-transformed variants. The simulation results strongly favor the new methods over the conventional cluster-robust variance estimator (MacKinnon et al., 2024).
With two-way clustering, the jackknife construction is extended componentwise. Leave-one-6-out, leave-one-7-out, and leave-one-intersection-out estimators produce
8
which are combined as
9
Because conventional two-way CRVEs can be indefinite, the paper also proposes a max-se rule, and its simulations recommend CV0 as the preferred choice (MacKinnon et al., 2024).
In judge designs with multidimensional clustering, cluster jackknife refers to modifying the IV projection matrix so that all entries corresponding to within-cluster dependence vanish. The multidimensional cluster jackknife IV estimator uses
1
and then
2
The paper’s Monte Carlo evidence shows that this multidimensional cluster jackknife can be essentially unbiased when clustering is complex and spans multiple dimensions (Ligtenberg et al., 2024).
5. Variants Outside Classical Clustered Regression
In large-data analysis with limited computational resources, the cluster jackknife can be synthetic rather than intrinsic. The proposed Jackknife Debiased Subsample estimator treats each subsample as a cluster, applies a delete-1 jackknife within each subsample, and averages the debiased cluster-level estimates: 3 The paper shows that jackknife debiasing reduces the leading subsampling bias from 4 to 5, while the asymptotic variance remains of order 6 (Wu et al., 2023).
In strong-lensing mass modeling, the omitted unit is not an econometric cluster but an entire background source. The jackknife procedure removes all images of one source, re-optimizes the mass model on the remaining sources, predicts the omitted images, and evaluates residuals
7
The normalized residuals 8 and 9 form a “Jackknife distribution” that is used to validate the predictive adequacy of the mass model rather than to estimate the variance of the target cosmological parameter directly (Nishida et al., 1 May 2025). In the Refsdal analysis, the same source-based jackknife is used to test whether normalized residuals are close to 00; the authors report 01 values of 02, 03, 04, and 05 across four mass models, and use these diagnostics to support the robustness of the final 06 constraint (Liu et al., 12 Sep 2025).
For covariance estimation of the two-point correlation function, delete-one jackknife over spatial subvolumes must account for auto-pairs and cross-pairs. One paper derives pair-weighting corrections and a “match” scheme, and reports that corrected internal resampling recovers the amplitude and structure of the covariance matrix, as represented by its principal components, to within 07 in 1000 QUIJOTE simulations (Mohammad et al., 2021). A related “jackknife on mocks” approach estimates a covariance within each mock by delete-08 jackknife over spatial sub-volumes and then averages across mocks; in the BOSS DR11 application it yields similar galaxy-clustering covariance estimates while requiring 09 times fewer simulations to get similar accuracy on variance (Escoffier et al., 2016).
6. Interpretation, Diagnostics, and Limitations
A recurrent theme in the literature is that cluster jackknife is not merely a more conservative replacement for CV10; it is also a diagnostic framework. High cluster leverage 11, high partial leverage 12, and large deviations of 13 from 14 identify clusters that dominate identification or instability. The scaled variance
15
is reported to be particularly predictive of size distortions in cluster-robust tests, with CV16 the most sensitive. The empirical guidance is to compare CV17 and CV18: if they are close and leverage diagnostics are mild, CV19 is probably fine; if they differ substantially and leverage heterogeneity is large, prefer CV20 or bootstrap methods (MacKinnon et al., 2022).
The method also has failure modes. Omit-one-cluster samples can be singular, especially in one-sided designs such as a regressor that is nonzero in only one cluster. In those cases software may use a generalized inverse, may set some coefficients to 0, or may report versions of CV21 and CV22 that drop singular omit-one-cluster subsamples. In nonlinear models, delete-one-cluster estimation can fail because of perfect separation, and in two-way clustering the three-term variance matrix can be indefinite even before any jackknife correction. These are not secondary implementation issues; they are informative about the fragility of the design (MacKinnon et al., 2022).
A broader theoretical caution comes from general jackknife theory. In a cluster/block interpretation, the delete-23 choice is not innocuous: the paper on jackknife, bootstrap, and Taylor-series bias correction argues that bounded coefficients are essential, while delete-1 24-jackknife can exhibit drastically different, and in worst cases exploding, bias and variance behavior. This suggests caution in extending cluster jackknife to aggressive higher-order delete-25 schemes without checking the implied weights (Jiao et al., 2017).
Taken together, the literature treats cluster jackknife less as a single estimator than as a design principle: delete the unit that carries the relevant dependence, identification, or predictive structure, and use the resulting leave-one-unit-out variation either to estimate uncertainty or to test robustness. This suggests that the method is most informative when the omitted unit coincides with the substantive unit at which the inferential problem is actually generated.