What actually moves the needle on retention? Our 2026 Student Impact Report has the numbers. Read the report
Platform Solutions All features Pricing Research 2026 Impact Report Blog Customer stories About Careers FAQs Sign in Book a demo
Research Causal inference · 24 June 2021 · 22 min read

Doubly robust estimates of programme effects when uptake clusters by college

A university rolls out an advising programme across its affiliated colleges, and some colleges take it up far more than others. The usual adjustments then overstate the effect by more than the effect itself. We show why, and what fixes it, on 200 simulated universities with a known answer.

ReportEPR-2021-01
Versionv1.1
AreaCausal inference
Correspondenceteam@eduplatter.com

Updated 9 November 2021 · v1.1 adds the cross-fitted estimator and the standard-error ratio diagnostic

Clusters of simulated students, one cluster per college, sized by weightCover generated from this paper’s simulation
Abstract

We simulate 30 affiliated colleges per university (about 16,500 students) in which uptake of an advising programme depends on student risk and on an unobserved college-level factor that also affects persistence. The true average effect on persistence is 3.75 percentage points. Outcome regression, inverse probability weighting and augmented IPW (AIPW) fitted on student covariates alone are all biased upward by about 5 points, more than doubling the estimated effect, with 95% interval coverage near zero. The unadjusted difference is less biased in one scenario only because two biases happen to offset. Adding college fixed effects to both nuisance models removes the bias whenever either model is correctly specified, as double robustness promises, with coverage of 93% to 98%. When both models are misspecified, parametric AIPW with fixed effects retains a bias of −0.61 points and 88% coverage, while cross-fitted AIPW with gradient-boosted nuisance models and the college as a categorical feature is unbiased (−0.06) with 97% coverage.

+5.1 ptbias of AIPW without college effects, against a true effect of 3.75 points
0.06 ptbias of AIPW with college fixed effects when both models are correctly specified
2.3×ratio of cluster-robust to naive standard error without college effects, the warning sign

Picture a university that offers a structured advising programme to all of its affiliated colleges. Participation is voluntary for students, enthusiastic at some colleges and lukewarm at others. The raw comparison between participants and non-participants shows a modest gain in persistence. The adjusted comparison, controlling for everything known about the students, shows a gain more than twice as large. The natural reading is that adjustment removed noise. In the setting simulated here, it adds bias.

This paper explains how, using simulation so that the right answer is known. It is a methods paper, but the problem it addresses is ordinary: almost every programme an Indian university evaluates is delivered through colleges, and colleges differ in ways that affect both who takes part and how students fare. The National Education Policy’s push toward larger multi-college clusters will make that structure more common, not less.

The estimand and the three standard estimators

Write Ai = 1 if student i took part, Yi = 1 if they persisted to the next year, and Yi(1), Yi(0) for the potential outcomes with and without the programme. The target is the average treatment effect across all students in the university:

τ = E[ Y(1) − Y(0) ](1)

Identification requires that, given the covariates we condition on, uptake is as good as random (no unmeasured confounding) and that every kind of student had some chance of taking part (positivity). Three estimators then follow from two nuisance functions, the propensity score e(x) = Pr(A = 1 | x) and the outcome regressions ma(x) = E[Y | A = a, x]:

τ̂OR = n−1 Σ [ m̂1(xi) − m̂0(xi) ],   τ̂IPW = Σ w1iYi / Σ w1i − Σ w0iYi / Σ w0i,   w1i = Ai/ê(xi), w0i = (1−Ai)/(1−ê(xi))(2)

and the augmented estimator of Robins, Rotnitzky and Zhao, which combines both and is consistent if either nuisance model is correct:

τ̂AIPW = n−1 Σ φi,   φi = m̂1(xi) − m̂0(xi) + Ai(Yi − m̂1(xi))/ê(xi) − (1−Ai)(Yi − m̂0(xi))/(1−ê(xi))(3)

The terms φi are estimated values of the efficient influence function, and their sample variance divided by n gives a standard error. That standard error assumes the students are independent. In a university of colleges they are not.

Where the college comes in

Suppose each college c has a characteristic Uc that nobody records: the energy of its principal, the culture of its faculty, the strength of its alumni network. It makes students more likely to take up a new programme and also more likely to persist regardless. Student covariates do not capture it. The assumption of no unmeasured confounding given student covariates is then false, and no amount of modelling flexibility in x will rescue it.

But Uc is constant within a college, so conditioning on college identity removes it entirely. Adding college fixed effects, a dummy for every college, to both the propensity and the outcome model restores identification under the weaker assumption that uptake is as good as random given student covariates within a college:

logit e(xi, ci) = αc + β′xi,   logit ma(xi, ci) = δc + γ′xi + θa(4)

Li, Zaslavsky and Landrum analysed exactly this choice for propensity weighting with multilevel data and showed that the fixed-effects propensity model protects against cluster-level confounding where a pooled model does not. What we add is the doubly robust version, a machine-learning version, and a demonstration of how badly the pooled versions fail at the cluster counts universities actually have.

The simulation

Structure30 colleges per university, 200 to 900 students each (about 16,500 students); 200 simulated universities per scenario
Student covariatesPrior marks, first-generation status, first-term attendance, fee arrears, and an observed college attribute (autonomous status)
Unobserved college factorUc ~ N(0, 1), raising uptake (logit coefficient 0.9) and persistence (0.6), and weakly correlated with prior marks
UptakeAbout 31%; targeted toward students with lower marks and attendance (negative selection on risk) and toward higher-U colleges (positive selection on context)
EffectHeterogeneous on the logit scale, larger for students below median marks and first-generation students; true ATE about 3.75 points on a persistence base rate near 85%
MisspecificationPropensity: an omitted interaction (low attendance and low marks) and a quadratic term. Outcome: the same interaction and a sinusoidal term in prior marks
EstimatorsNaive difference; outcome regression, Hajek IPW and AIPW, each with and without college fixed effects; cross-fitted AIPW with boosted trees and the college as a categorical feature (3 folds, 60 universities per scenario)
Standard errorsInfluence-function variance, treating students as independent and clustered by college (CR1)

Result 1: adjusting for students alone makes it worse

-1 pt0 pt1 pt2 pt3 pt4 pt5 pt6 ptNaive difference+1.4 ptOutcome regression+5.18 ptIPW (Hajek)+5.16 ptAIPW+5.14 ptOutcome regression + FE+0.16 ptIPW + FE+0.06 ptAIPW + FE+0.06 ptCross-fitted boosted AIPW+0.04 pt
Bias of each estimator, in percentage points, when both nuisance models are correctly specified apart from the college factor. True effect 3.75 points.

Without college effects, every adjusted estimator is biased upward by about 5.1 points: the analysis reports an effect of nearly 9 points when the truth is under 4. Coverage of a nominal 95% interval is zero in all four scenarios. Getting the student-level models exactly right does not help, because the problem is not in the student-level models.

The unadjusted difference in means is biased by only 1.4 points in the same scenario, which looks like a point in its favour and is not. The programme recruits struggling students (biasing the raw comparison down) inside thriving colleges (biasing it up), and in this scenario the two roughly cancel. Adjusting for student risk removes the first bias and leaves the second fully exposed. This is the bias-amplification phenomenon described by Pearl and by Middleton and colleagues: conditioning on covariates that explain treatment but not the unmeasured confounder can increase, not reduce, the bias that confounder causes. Change the selection pattern (scenario D) and the naive estimate swings to −6.7 points. It is not a robust fallback; it is luck.

When adjustment makes an effect estimate larger, and the unit of delivery is a college, the first hypothesis should be confounding at the college level, not a programme that works better than the raw numbers suggested.

Result 2: college fixed effects restore double robustness

ScenarioAIPW, students onlyAIPW + college FECoverage (cluster SE)Cross-fitted boosted AIPWCoverage
A: both models correct+5.14+0.0695.0%+0.0496.7%
B: propensity misspecified+4.86−0.0797.5%−0.0596.7%
C: outcome misspecified+4.94+0.0795.0%0.0096.7%
D: both misspecified+4.32−0.6188.0%−0.0696.7%
Bias in percentage points; true effect about 3.75. Means over 200 simulated universities (60 for the cross-fitted estimator). Coverage of a nominal 95% interval.

With college fixed effects in both nuisance models, AIPW is unbiased to within a tenth of a point whenever at least one of the two models is correctly specified, exactly as the theory says it should be. Root-mean-square error falls from about 5.3 points to 0.73. Outcome regression and IPW with fixed effects are nearly as good in scenarios A to C, which is a reminder that double robustness is insurance, not a performance guarantee: its value appears when you do not know which model is wrong.

That is scenario D, where both are. Parametric AIPW with fixed effects then carries a bias of −0.61 points, a sixth of the effect, and its interval covers the truth 88% of the time. Cross-fitted AIPW, with gradient-boosted trees for both nuisance functions and the college passed as a categorical feature so the trees can learn college-specific intercepts, is unbiased (−0.06) with 97% coverage, at the price of slightly higher variance in the easy scenarios. Following Chernozhukov and colleagues, the cross-fitting (fitting nuisance models on two folds and evaluating φ on the third) is what makes the flexible fits safe to plug into (3).

024685.310.730.71A: both correct5.020.750.82B: PS wrong5.110.790.77C: outcome wrong4.50.930.67D: both wrongAIPW, students onlyAIPW + college FECross-fitted boosted AIPW
Root-mean-square error, in percentage points, by scenario: AIPW on student covariates, AIPW with college fixed effects, and cross-fitted boosted AIPW.

Result 3: the standard error tells you something is wrong

One diagnostic proved more useful than any other. Without college effects, the cluster-robust standard error of AIPW, computed by summing the influence-function values within each college,

SECR = n−1 [ G/(G−1) · Σc ( Σi∈c (φi − φ̄) )2 ]1/2(5)

averaged 1.38 points against 0.59 for the naive version, a ratio of 2.3. Once college effects were included, the two agreed to within 7% (0.77 against 0.72). The cluster correction is not itself the fix: with the bias in place, even the wider interval covered the truth in at most 3.5% of universities. But a large gap between the two standard errors means the influence-function values are strongly correlated within colleges, which means something about the college is driving outcomes that the model has not absorbed. We now compute both on every evaluation and investigate any ratio above 1.5 before reporting anything.

00.511.520.591.38Students only0.720.77With college FENaive (iid) SECluster-robust SE
Mean standard error under the two variance formulas, with and without college fixed effects, scenario A.

Positivity, and what fixed effects cost

Fixed effects are not free. Within-college comparison needs both participants and non-participants in every college; a college where everyone or no one took part contributes nothing, and a college where almost everyone did contributes enormous weights. In our simulation the median maximum inverse-propensity weight was 15 with correct models and 22 to 24 when the propensity model was misspecified, after truncating estimated propensities to [0.01, 0.99]. That is manageable at 30 colleges with uptake around 31%; a programme that is near-universal in some colleges and absent in others is not evaluable this way, and no estimator can make it so. The right response is to say so, and to design the next rollout with some within-college variation in timing.

Recommendations

Limitations

Fixed effects remove confounding that is constant within a college. Anything that varies within a college and drives both uptake and persistence, such as a particular teacher’s encouragement, remains a threat that this design does not address. The simulation also has no interference between students, whereas advising programmes plausibly spill over to friends of participants, which violates the stable-unit assumption on which (1) depends. Thirty colleges is enough for the cluster-robust variance to behave; with fewer than about fifteen, small-sample corrections or a wild cluster bootstrap are needed. The cross-fitted estimator was run on 60 rather than 200 universities per scenario because of its cost, so its coverage figures carry a Monte Carlo standard error of about 2.8 points.

Simulated data only. The simulation, every estimator and both variance formulas are published as a single script. Write to team@eduplatter.com.

The propensity score is Rosenbaum and Rubin [1]; the augmented estimator is Robins, Rotnitzky and Zhao [2], and its double robustness is set out by Bang and Robins [3]. Kang and Schafer [4] showed how doubly robust estimators can misbehave when both models are wrong and weights are extreme, which our scenario D reproduces in miniature. Cross-fitting with machine-learning nuisance models follows Chernozhukov and colleagues [5]. For clustered data, Arpino and Mealli [6] and Li, Zaslavsky and Landrum [7] analyse propensity specification with multilevel structure; our fixed-effects AIPW extends the latter. Cameron and Miller [8] is the practical reference on cluster-robust inference. The bias-amplification mechanism is described by Pearl [9] and examined empirically by Middleton and colleagues [10]. Imbens and Rubin [11] supply the potential-outcomes framing throughout.

Artefacts

Everything below is published or available on request. A number nobody can reproduce is an advertisement, not a result. Real institutional records are never shareable under our processor obligations, so where that applies we release a simulated corpus that reproduces the qualitative finding.

harnessepr_2021_01_dr_clustered.pySimulation, nine estimators, iid and cluster-robust variances, dependency-free IRLS logistic fit · Python, MIT · _generators/simulations/
dataepr_2021_01.jsonResults file, every number quoted in this paper · _generators/simulations/results/

References

  1. Rosenbaum, P. R., & Rubin, D. B. (1983). The Central Role of the Propensity Score in Observational Studies for Causal Effects. Biometrika, 70(1), 41–55.
  2. Robins, J. M., Rotnitzky, A., & Zhao, L. P. (1994). Estimation of Regression Coefficients When Some Regressors Are Not Always Observed. Journal of the American Statistical Association, 89(427), 846–866.
  3. Bang, H., & Robins, J. M. (2005). Doubly Robust Estimation in Missing Data and Causal Inference Models. Biometrics, 61(4), 962–973.
  4. Kang, J. D. Y., & Schafer, J. L. (2007). Demystifying Double Robustness: A Comparison of Alternative Strategies for Estimating a Population Mean from Incomplete Data. Statistical Science, 22(4), 523–539.
  5. Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W., & Robins, J. (2018). Double/Debiased Machine Learning for Treatment and Structural Parameters. The Econometrics Journal, 21(1), C1–C68.
  6. Arpino, B., & Mealli, F. (2011). The Specification of the Propensity Score in Multilevel Observational Studies. Computational Statistics & Data Analysis, 55(4), 1770–1780.
  7. Li, F., Zaslavsky, A. M., & Landrum, M. B. (2013). Propensity Score Weighting with Multilevel Data. Statistics in Medicine, 32(19), 3373–3387.
  8. Cameron, A. C., & Miller, D. L. (2015). A Practitioner’s Guide to Cluster-Robust Inference. Journal of Human Resources, 50(2), 317–372.
  9. Pearl, J. (2010). On a Class of Bias-Amplifying Variables that Endanger Effect Estimates. Proceedings of the 26th Conference on Uncertainty in Artificial Intelligence.
  10. Middleton, J. A., Scott, M. A., Diakow, R., & Hill, J. L. (2016). Bias Amplification and Bias Unmasking. Political Analysis, 24(3), 307–323.
  11. Imbens, G. W., & Rubin, D. B. (2015). Causal Inference for Statistics, Social, and Biomedical Sciences. Cambridge University Press.
  12. Bhardwaj, M. (2020). When the term moved online: detecting and correcting dataset shift in early-warning models. EduPlatter Research, EPR-2020-01.
Cite this work

Bhardwaj, M. (2021). Doubly robust estimates of programme effects when uptake clusters by college. EduPlatter Research, EPR-2021-01.

Mohit Bhardwaj

Head of Analytics · EduPlatter

Mohit led EduPlatter’s analytics group from December 2018 to December 2022, building the hazard models, the efficacy designs and the reporting and disclosure methods described in the papers from that period.