Papers
Topics
Authors
Recent
Search
2000 character limit reached

RDD in Spatial Fixed Effects Models

Updated 4 May 2026
  • 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 YiY_i denote the observed outcome, Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^2 the bivariate running (score) variable, and Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\} the treatment indicator, determined by the known boundary B={x:g(x)=0}B = \{x : g(x) = 0\}. Each unit ii is associated with a spatial cluster sis_i. The SFM is written as:

Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,

where αs\alpha_s is the fixed effect for cluster ss, Ci=1−TiC_i = 1 - T_i, and Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^20. The primary estimand is the boundary-effect (treatment-effect) function:

Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^21

Identification leverages the assumption that for units on either side of Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^22, fixed effects Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^23 are continuous and the conditional means Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^24 and Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^25 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 Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^26 denote the Euclidean distance from Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^27 to its projection on Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^28. For a kernel Xi=(Xi1,Xi2)′∈R2X_i = (X_{i1}, X_{i2})' \in \mathbb{R}^29 with bandwidth Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}0 (Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}1), for Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}2 solve:

Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}3

Cluster fixed effects Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}4 are nuisance parameters, typically addressed by within-cluster demeaning prior to regression. The local-linear estimator for the treatment effect at Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}5 is then:

Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}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 Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}7:

  • Univariate Distance Approach: Define Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}8 and estimate

Ti=1{g(Xi)≥0}T_i = 1\{g(X_i) \geq 0\}9

Take B={x:g(x)=0}B = \{x : g(x) = 0\}0. However, when B={x:g(x)=0}B = \{x : g(x) = 0\}1 includes non-smooth regions such as kinks, B={x:g(x)=0}B = \{x : g(x) = 0\}2 is only Lipschitz at zero, which induces a uniform bias of order B={x:g(x)=0}B = \{x : g(x) = 0\}3 for B={x:g(x)=0}B = \{x : g(x) = 0\}4, even with high-order polynomials [(Cattaneo et al., 8 May 2025), Lemma 2.2].

  • Bivariate Location Approach: The estimator B={x:g(x)=0}B = \{x : g(x) = 0\}5 fits separate two-dimensional polynomials on each side of B={x:g(x)=0}B = \{x : g(x) = 0\}6. Under minimal smoothness and perimeter conditions (Assumption 3.1 and 3.2), the usual nonparametric bias rate B={x:g(x)=0}B = \{x : g(x) = 0\}7 holds for B={x:g(x)=0}B = \{x : g(x) = 0\}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 B={x:g(x)=0}B = \{x : g(x) = 0\}9, define ii0. Under appropriate design and smoothness conditions with controlled fixed effects, the estimator ii1 obeys:

ii2

where

ii3

ii4, and ii5 is the density at zero of ii6. Practical estimation of ii7 utilizes sample proportions within a small neighborhood of the boundary.

A pointwise confidence interval (CI) for ii8 is

ii9

Uniform confidence bands across a grid sis_i0 use the t-process

sis_i1

with conditional covariance sis_i2. Simulating sis_i3, the sis_i4 quantile sis_i5 of sis_i6 determines the uniform band:

sis_i7

with asymptotic coverage sis_i8 (Theorem 5.3).

Bias correction employs a higher-order (sis_i9) local polynomial estimator for the leading bias term Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,0, subtracted from Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,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 Yi=αsi+μ0(Xi)â‹…Ci+μ1(Xi)â‹…Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,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 Yi=αsi+μ0(Xi)â‹…Ci+μ1(Xi)â‹…Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,3 is recommended to manage the Yi=αsi+μ0(Xi)â‹…Ci+μ1(Xi)â‹…Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,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 Yi=αsi+μ0(Xi)â‹…Ci+μ1(Xi)â‹…Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,5 locally reduced.

A summary of practical elements is given below:

Element Recommendation Notes
Kernel Triangular, prod.-Epanechnikov Compact support, Lipschitz
Bandwidth Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,6 Plug-in, rule-of-thumb Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,7 when Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,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:

αs\alpha_s0 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 Yi=αsi+μ0(Xi)⋅Ci+μ1(Xi)⋅Ti+εi,Y_i = \alpha_{s_i} + \mu_0(X_i) \cdot C_i + \mu_1(X_i) \cdot T_i + \varepsilon_i,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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Regression Discontinuity Designs in SFM.