RDD in Spatial Fixed Effects Models
- Regression discontinuity designs in SFM are causal inference methods that use local polynomial regression along a bivariate boundary to estimate treatment effects in spatial contexts.
- They incorporate spatial fixed effects and clustering to address spatial dependencies and provide robust pointwise and uniform inference.
- Practical implementation leverages R packages like rd2d with bias correction and optimal bandwidth selection to manage the nuances of irregular boundaries.
Regression discontinuity designs (RDD) in the context of spatial fixed effects models (SFM) involve identifying and estimating causal treatment effects along a continuous, higher-dimensional assignment boundary. These boundary discontinuity designs—also called multi-score RDDs, with geographic RDD as a notable special case—assign treatment based on a bivariate score, partitioning observed units into control and treatment groups. Spatial clustering and fixed effects are employed to accommodate spatial dependencies and correlated errors within defined clusters.
1. Model Specification and Identification
Let denote the observed outcome, the bivariate running (score) variable, and the treatment indicator, determined by the known boundary . Each unit is associated with a spatial cluster . The SFM is written as:
where is the fixed effect for cluster , , and 0. The primary estimand is the boundary-effect (treatment-effect) function:
1
Identification leverages the assumption that for units on either side of 2, fixed effects 3 are continuous and the conditional means 4 and 5 are also continuous off the boundary, mirroring the univariate RDD scenario (Cattaneo et al., 8 May 2025).
2. Local Polynomial Estimation Along the Boundary
Estimation proceeds via local polynomial regression applied separately to observations on either side of the assignment boundary, incorporating fixed effects. Let 6 denote the Euclidean distance from 7 to its projection on 8. For a kernel 9 with bandwidth 0 (1), for 2 solve:
3
Cluster fixed effects 4 are nuisance parameters, typically addressed by within-cluster demeaning prior to regression. The local-linear estimator for the treatment effect at 5 is then:
6
Alternatively, regressions can be conducted on cluster-demeaned data without including fixed effects explicitly.
3. Univariate Distance vs. Bivariate Location Approaches
There are two principal estimators for 7:
- Univariate Distance Approach: Define 8 and estimate
9
Take 0. However, when 1 includes non-smooth regions such as kinks, 2 is only Lipschitz at zero, which induces a uniform bias of order 3 for 4, even with high-order polynomials [(Cattaneo et al., 8 May 2025), Lemma 2.2].
- Bivariate Location Approach: The estimator 5 fits separate two-dimensional polynomials on each side of 6. Under minimal smoothness and perimeter conditions (Assumption 3.1 and 3.2), the usual nonparametric bias rate 7 holds for 8, regardless of boundary irregularity (Theorem 5.1).
Use of the univariate distance estimator is inappropriate when the boundary is irregular, while the bivariate location estimator remains robust in such settings.
4. Asymptotic Inference: Variance, Confidence Intervals, and Bands
For 9, define 0. Under appropriate design and smoothness conditions with controlled fixed effects, the estimator 1 obeys:
2
where
3
4, and 5 is the density at zero of 6. Practical estimation of 7 utilizes sample proportions within a small neighborhood of the boundary.
A pointwise confidence interval (CI) for 8 is
9
Uniform confidence bands across a grid 0 use the t-process
1
with conditional covariance 2. Simulating 3, the 4 quantile 5 of 6 determines the uniform band:
7
with asymptotic coverage 8 (Theorem 5.3).
Bias correction employs a higher-order (9) local polynomial estimator for the leading bias term 0, subtracted from 1, with the same bandwidth as the initial fit. Exact implementation aligns with Calonico–Cattaneo–Farrell (2018) (Cattaneo et al., 8 May 2025).
5. Practical Implementation: Kernels, Bandwidths, and Clustering
Implementation details include:
- Kernels: Any compact-support, Lipschitz kernel is valid; the triangular kernel is standard for 1D, and product-Epanechnikov for 2D.
- Bandwidth Selection: For smooth boundaries, the mean squared error (MSE)-optimal bandwidth rate is 2. Plug-in and rule-of-thumb selectors are provided in both the paper’s supplemental code and the rd2d package defaults. With boundary kinks, a global rate 3 is recommended to manage the 4 bias intrinsic to distance-based methods.
- Standard Errors: Cluster-robust standard errors are essential when residuals are correlated within clusters.
- Boundary Irregularities: For highly jagged boundaries at the analysis scale, Assumption 3.2 (perimeter condition) should be validated, or 5 locally reduced.
A summary of practical elements is given below:
| Element | Recommendation | Notes |
|---|---|---|
| Kernel | Triangular, prod.-Epanechnikov | Compact support, Lipschitz |
| Bandwidth 6 | Plug-in, rule-of-thumb | 7 when 8 is smooth |
| SEs | Cluster-robust | Correlated errors within clusters |
6. Software and Applied Workflow
The R package rd2d implements both distance-based and location-based estimators, supports pointwise and uniform inference, bias correction, bandwidth selection, and cluster-robust inference. The package is available at https://rdpackages.github.io/rd2d and aligns with the estimation framework proposed in (Cattaneo et al., 8 May 2025). A typical use proceeds as follows:
0
Control over estimation method (distance vs. location) is achieved via the method argument ("distance" or "location"), and the manual provides further customization details.
7. Limitations and Boundary Conditions
The bias properties fundamentally distinguish the two classes of estimators. Distance-based estimators suffer irreducible 9 misspecification bias under non-smooth boundary geometries, making only the bivariate location approach suitable for empirical analysis in the presence of kinks or irregularities. For extremely irregular boundaries at the scale of analysis or clustering, perimeter and smoothness conditions must be explicitly checked. Observable cluster-level spatial structure is addressed with fixed effects and cluster-robustification; ignoring such structure in presence of correlated errors leads to invalid inference.
References: Cattaneo, Titiunik and Yu (2025) (Cattaneo et al., 8 May 2025); Calonico, Cattaneo and Farrell (2018).