摘要
This repository contains the data, code, and supplemental materials supporting the findings and reproducibility of the paper "DML-Geo: An Ensemble Double Machine Learning Framework for Estimating Spatially Heterogeneous Causal Effects", published in the International Journal of Geographical Information Science (IJGIS).File OverviewDML-Geo_data_code.rarA1_sim_exp.py: Contains the code for running simulation experiments across the 118 scenarios, including data generation, model training, and evaluation.A2_realdata_exp.py: Contains the code for applying DML-Geo to two real-world datasets: the housing price dataset and the mental health dataset.A3_figures.ipynb: The primary notebook for generating all figures and summary statistics in the paper, organized by experiment and corresponding figure.scenario_manager.py: Provides functions for creating and managing the 118 simulation scenarios, including scenario descriptions and data generation.causal_tester.py: A module offering a framework for testing spatial causal effects, including placebo-based significance inference, tailored for the housing price and mental health experiments.models.py: Contains implementations of all DML variants (e.g., DML-CATE, DML-GAM, DML-GWR, DML-Geo) and baseline models (e.g., DML, GWR, CausalForest) used in this study.ridge_gwr.py: Implements a modified Geographically Weighted Regression (GWR) with ridge regularization to address small-sample issues and prevent “matrix is singular” errors in standard GWR.ridge_sel_bw.py: Implements a modified bandwidth selection routine for ridge-regularized GWR.data/: Directory for storing input datasets, including the housing price and mental health datasets.output/: Directory for storing outputs from simulation experiments and real-world applications.Supplemental Material.docxThis supplemental material provides detailed documentation of the simulation experiments conducted in this study. It includes the complete data-generating process across 118 simulation scenarios, covering spatial coordinate generation, covariate structures, treatment effect patterns, and nuisance function specifications. Additionally, it reports the accuracy results of all component models and competing baselines across the eight scenario categories, as evaluated by PEHE in CATE recovery.