IDEAS home Printed from https://ideas.repec.org/p/urb/wpaper/26_01.html

The Geography of Impact: Endogenous Spatial Clustering for Difference-in-Differences Estimation

Author

Listed:
  • Francesco Vidoli

    (Department of Economics, Society & Politics, Università di Urbino Carlo Bo)

Abstract

Standard policy evaluation methods typically assume that treatment effects are homogeneous within fixed administrative units. However, the true policy relevant boundaries are typically unknown to the researcher, as latent territorial characteristics, such as institutional quality or local economic structure, generate unobserved spatial heterogeneity that does not align with administrative borders. To address this challenge, we propose a novel unsupervised learning algorithm that endogenously identifies geographic regimes heterogeneous in terms of causal impact. Unlike existing clustering methods that group units based on geometric density or outcome similarity, our approach partitions spatial units specifically on the basis of their causal response to treatment. By explicitly maximizing treatment effect variance subject to spatial coherence, we identify where policies have differential impacts, recovering latent economic boundaries while maintaining identification requirements. We validate the estimator through Monte Carlo simulations, demonstrating its robustness in recovering latent economic structures even in high-noise environments. Finally, we apply the method to analyse the local labour market effects of the 2001 Chinese import competition shock in the United States, revealing distinct latent spatial regimes of industrial resilience that cut across state lines.

Suggested Citation

  • Francesco Vidoli, 2026. "The Geography of Impact: Endogenous Spatial Clustering for Difference-in-Differences Estimation," Working Papers 2601, University of Urbino Carlo Bo, Department of Economics, Society & Politics - Scientific Committee - L. Stefanini & G. Travaglini, revised 2026.
  • Handle: RePEc:urb:wpaper:26_01
    as

    Download full text from publisher

    File URL: http://www.econ.uniurb.it/RePEc/urb/wpaper/WP_26_01.pdf
    File Function: First version, 2026
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. James J. Heckman, 2001. "Micro Data, Heterogeneity, and the Evaluation of Public Policy: Nobel Lecture," Journal of Political Economy, University of Chicago Press, vol. 109(4), pages 673-748, August.
    2. Stefan Wager & Susan Athey, 2018. "Estimation and Inference of Heterogeneous Treatment Effects using Random Forests," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 113(523), pages 1228-1242, July.
    3. Clément de Chaisemartin & Xavier D'Haultfœuille, 2020. "Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects," American Economic Review, American Economic Association, vol. 110(9), pages 2964-2996, September.
    4. Vidoli, Francesco & Pignataro, Giacomo & Benedetti, Roberto, 2022. "Identification of spatial regimes of the production function of Italian hospitals through spatially constrained cluster-wise regression," Socio-Economic Planning Sciences, Elsevier, vol. 82(PA).
    5. Grimmer, Justin & Messing, Solomon & Westwood, Sean J., 2017. "Estimating Heterogeneous Treatment Effects and the Effects of Heterogeneous Treatments with Ensemble Methods," Political Analysis, Cambridge University Press, vol. 25(4), pages 413-434, October.
    6. David H. Autor & David Dorn & Gordon H. Hanson, 2013. "The China Syndrome: Local Labor Market Effects of Import Competition in the United States," American Economic Review, American Economic Association, vol. 103(6), pages 2121-2168, October.
    7. Susan Athey & Guido W. Imbens, 2017. "The State of Applied Econometrics: Causality and Policy Evaluation," Journal of Economic Perspectives, American Economic Association, vol. 31(2), pages 3-32, Spring.
    8. Dmitry Arkhangelsky & Susan Athey & David A. Hirshberg & Guido W. Imbens & Stefan Wager, 2021. "Synthetic Difference-in-Differences," American Economic Review, American Economic Association, vol. 111(12), pages 4088-4118, December.
    9. David H. Autor & David Dorn & Gordon H. Hanson, 2013. "The Geography of Trade and Technology Shocks in the United States," American Economic Review, American Economic Association, vol. 103(3), pages 220-225, May.
    10. Alberto Abadie & Susan Athey & Guido W. Imbens & Jeffrey M. Wooldridge, 2020. "Sampling‐Based versus Design‐Based Uncertainty in Regression Analysis," Econometrica, Econometric Society, vol. 88(1), pages 265-296, January.
    11. Victor Chernozhukov & Mert Demirer & Esther Duflo & Iván Fernández-Val, 2018. "Generic Machine Learning Inference on Heterogeneous Treatment Effects in Randomized Experiments, with an Application to Immunization in India," NBER Working Papers 24678, National Bureau of Economic Research, Inc.
    12. Stéphane Bonhomme & Elena Manresa, 2015. "Grouped Patterns of Heterogeneity in Panel Data," Econometrica, Econometric Society, vol. 83(3), pages 1147-1184, May.
    13. Ashesh Rambachan & Jonathan Roth, 2023. "A More Credible Approach to Parallel Trends," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 90(5), pages 2555-2591.
    14. Matias Busso & Jesse Gregory & Patrick Kline, 2013. "Assessing the Incidence and Efficiency of a Prominent Place Based Policy," American Economic Review, American Economic Association, vol. 103(2), pages 897-947, April.
    15. Esther Duflo, 2001. "Schooling and Labor Market Consequences of School Construction in Indonesia: Evidence from an Unusual Policy Experiment," American Economic Review, American Economic Association, vol. 91(4), pages 795-813, September.
    16. Leeb, Hannes & Pötscher, Benedikt M., 2005. "Model Selection And Inference: Facts And Fiction," Econometric Theory, Cambridge University Press, vol. 21(1), pages 21-59, February.
    17. Sun, Liyang & Abraham, Sarah, 2021. "Estimating dynamic treatment effects in event studies with heterogeneous treatment effects," Journal of Econometrics, Elsevier, vol. 225(2), pages 175-199.
    18. Liangjun Su & Zhentao Shi & Peter C. B. Phillips, 2016. "Identifying Latent Structures in Panel Data," Econometrica, Econometric Society, vol. 84, pages 2215-2264, November.
    19. Goodman-Bacon, Andrew, 2021. "Difference-in-differences with variation in treatment timing," Journal of Econometrics, Elsevier, vol. 225(2), pages 254-277.
    20. Joshua D. Angrist & Jörn-Steffen Pischke, 2009. "Mostly Harmless Econometrics: An Empiricist's Companion," Economics Books, Princeton University Press, edition 1, number 8769, December.
    21. Toru Kitagawa & Aleksey Tetenov, 2018. "Who Should Be Treated? Empirical Welfare Maximization Methods for Treatment Choice," Econometrica, Econometric Society, vol. 86(2), pages 591-616, March.
    22. Melissa Dell, 2010. "The Persistent Effects of Peru's Mining Mita," Econometrica, Econometric Society, vol. 78(6), pages 1863-1903, November.
    23. Kelly, Morgan, 2019. "The Standard Errors of Persistence," CEPR Discussion Papers 13783, Centre for Economic Policy Research.
    24. Justin R. Pierce & Peter K. Schott, 2016. "The Surprisingly Swift Decline of US Manufacturing Employment," American Economic Review, American Economic Association, vol. 106(7), pages 1632-1662, July.
    25. Anna Gloria Billé & Roberto Benedetti & Paolo Postiglione, 2017. "A two-step approach to account for unobserved spatial heterogeneity," Spatial Economic Analysis, Taylor & Francis Journals, vol. 12(4), pages 452-471, October.
    26. Abadie, Alberto & Diamond, Alexis & Hainmueller, Jens, 2010. "Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program," Journal of the American Statistical Association, American Statistical Association, vol. 105(490), pages 493-505.
    27. Kelejian, Harry H & Prucha, Ingmar R, 1998. "A Generalized Spatial Two-Stage Least Squares Procedure for Estimating a Spatial Autoregressive Model with Autoregressive Disturbances," The Journal of Real Estate Finance and Economics, Springer, vol. 17(1), pages 99-121, July.
    28. Conley, T. G., 1999. "GMM estimation with cross sectional dependence," Journal of Econometrics, Elsevier, vol. 92(1), pages 1-45, September.
    29. Imbens,Guido W. & Rubin,Donald B., 2015. "Causal Inference for Statistics, Social, and Biomedical Sciences," Cambridge Books, Cambridge University Press, number 9780521885881, August.
    30. Morgan Kelly, 2019. "The Standard Errors of Persistence," Working Papers 201913, School of Economics, University College Dublin.
    31. Susan Athey & Stefan Wager, 2021. "Policy Learning With Observational Data," Econometrica, Econometric Society, vol. 89(1), pages 133-161, January.
    32. Roth, Jonathan & Sant’Anna, Pedro H.C. & Bilinski, Alyssa & Poe, John, 2023. "What’s trending in difference-in-differences? A synthesis of the recent econometrics literature," Journal of Econometrics, Elsevier, vol. 235(2), pages 2218-2244.
    33. Vidoli, Francesco & Sacchi, Agnese & Carrera, Edgar J. Sanchez, 2025. "Spatial regimes in heterogeneous territories: The efficiency of local public spending," Economic Modelling, Elsevier, vol. 151(C).
    34. Callaway, Brantly & Sant’Anna, Pedro H.C., 2021. "Difference-in-Differences with multiple time periods," Journal of Econometrics, Elsevier, vol. 225(2), pages 200-230.
    35. Daron Acemoglu & David Autor & David Dorn & Gordon H. Hanson & Brendan Price, 2016. "Import Competition and the Great US Employment Sag of the 2000s," Journal of Labor Economics, University of Chicago Press, vol. 34(S1), pages 141-198.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Mark Kattenberg & Bas Scheer & Jurre Thiel, 2023. "Causal forests with fixed effects for treatment effect heterogeneity in difference-in-differences," CPB Discussion Paper 452, CPB Netherlands Bureau for Economic Policy Analysis.
    2. Arne Henningsen & Guy Low & David Wuepper & Tobias Dalhaus & Hugo Storm & Dagim Belay & Stefan Hirsch, 2026. "Estimating Causal Effects With Observational Data: Guidelines for Agricultural and Applied Economists," Journal of Agricultural Economics, Wiley Blackwell, vol. 77(2), pages 356-382, June.
    3. Dmitry Arkhangelsky & Guido Imbens, 2023. "Causal Models for Longitudinal and Panel Data: A Survey," Papers 2311.15458, arXiv.org, revised Jun 2024.
    4. Roth, Jonathan & Sant’Anna, Pedro H.C. & Bilinski, Alyssa & Poe, John, 2023. "What’s trending in difference-in-differences? A synthesis of the recent econometrics literature," Journal of Econometrics, Elsevier, vol. 235(2), pages 2218-2244.
    5. Christian Alemán-Pericón & Alexander Ludwig & Christopher Busch & Raül Santaeulàlia-Llopis, 2022. "A Stage-Based Identification of Policy Effects," Working Papers 1369, Barcelona School of Economics.
    6. Myungkou Shin, 2022. "Finitely Heterogeneous Treatment Effect in Event-study," Papers 2204.02346, arXiv.org, revised Oct 2024.
    7. Charris, Carlos & Branco, Danyelle & Carrillo, Bladimir, 2024. "Economic shocks and infant health: Evidence from a trade reform in Brazil," Journal of Development Economics, Elsevier, vol. 166(C).
    8. Ratzanyel Rinc'on & Kyungchul Song, 2025. "Causal Inference with Groupwise Matching," Papers 2510.26106, arXiv.org, revised Mar 2026.
    9. Gregory Faletto, 2023. "Fused Extended Two-Way Fixed Effects for Difference-in-Differences With Staggered Adoptions," Papers 2312.05985, arXiv.org, revised Apr 2025.
    10. Justin C. Wiltshire, 2023. "Walmart Supercenters and Monopsony Power: How A Large, Low-Wage Employer Impacts Local Labor Markets," Department Discussion Papers 2304, Department of Economics, University of Victoria.
    11. Tatsuru Kikuchi, 2025. "A Unified Framework for Spatial and Temporal Treatment Effect Boundaries: Theory and Identification," Papers 2510.00754, arXiv.org, revised Oct 2025.
    12. Simon Freyaldenhoven & Christian Hansen & Jorge Pérez Pérez & Jesse M. Shapiro, 2021. "Visualization, Identification, and Estimation in the Linear Panel Event-Study Design," NBER Working Papers 29170, National Bureau of Economic Research, Inc.
    13. Bukin, Eduard & Robinson, Sarah & Petrick, Martin, 2025. "The effects of land privatization on pasture productivity in south-eastern Kazakhstan," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 158, pages 1-18.
    14. Kim, Youngho, 2023. "Payments for Ecosystem Services Programs and Climate Change Adaptation in Agriculture," 2023 Annual Meeting, July 23-25, Washington D.C. 335971, Agricultural and Applied Economics Association.
    15. Michael Pollmann, 2020. "Causal Inference for Spatial Treatments," Papers 2011.00373, arXiv.org, revised Apr 2026.
    16. Athey, Susan & Imbens, Guido W., 2022. "Design-based analysis in Difference-In-Differences settings with staggered adoption," Journal of Econometrics, Elsevier, vol. 226(1), pages 62-79.
    17. Ben Deaner & Chen-Wei Hsiang & Andrei Zeleneev, 2025. "Inferring Treatment Effects in Large Panels by Uncovering Latent Similarities," Papers 2503.20769, arXiv.org, revised Mar 2025.
    18. Jerch, Rhiannon & Kahn, Matthew E. & Lin, Gary C., 2023. "Local public finance dynamics and hurricane shocks," Journal of Urban Economics, Elsevier, vol. 134(C).
    19. Li, Daiyue & Jin, Yanhong & Cheng, Mingwang, 2024. "Unleashing the power of industrial robotics on firm productivity: Evidence from China," Journal of Economic Behavior & Organization, Elsevier, vol. 224(C), pages 500-520.
    20. Yan, Wenying & Chen, Yusheng & Wang, Yanmei, 2025. "Efficiency improvement effect of clean energy transformation —A quasi-natural experiment based on China's clean heating policy," Energy, Elsevier, vol. 334(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C21 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Cross-Sectional Models; Spatial Models; Treatment Effect Models
    • C23 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Models with Panel Data; Spatio-temporal Models
    • H40 - Public Economics - - Publicly Provided Goods - - - General
    • R10 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General Regional Economics - - - General

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:urb:wpaper:26_01. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Carmela Nicoletti (email available below). General contact details of provider: https://edirc.repec.org/data/feurbit.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.