# 空间杜宾模型

空间杜宾模型（SDM）是一种空间计量回归，其中因变量同时取决于空间滞后的结果变量与空间滞后的解释变量，写作 \( y = \rho \cdot W \cdot y + X \cdot \beta + W \cdot X \cdot \theta + \varepsilon \)，用于估计空间溢出效应。<sup>[1](https://link.springer.com/article/10.1007/s12076-026-00436-3)</sup> 它结合了空间滞后模型（SAR）与SLX模型：前者通过 \( \rho \cdot W \cdot y \) 捕捉结果变量之间的相互依赖，后者通过 \( W \cdot X \cdot \theta \) 捕捉协变量中的溢出。<sup>[2](https://arxiv.org/pdf/2402.09895.pdf)</sup> 由于这两项均作为自由参数包含在模型中，它嵌套了SAR、SLX和空间误差（SEM）设定，并在空间设定搜索中充当一般的起始模型。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup>

| 关键事实 | 详情 |
|---|---|
| 模型方程 | \( y = \rho \cdot W \cdot y + X \cdot \beta + W \cdot X \cdot \theta + \varepsilon \)，其中 \( W \) 为 \( N \times N \) 行标准化权重矩阵<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> |
| 嵌套关系 | \( \theta = 0 \) 得到SAR；\( \rho = 0 \) 得到SLX；\( \theta = -\rho \cdot \beta \) 得到SEM<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> |
| 效应 | 直接效应与间接效应来自 \( (I - \rho \cdot W)^{-1}(I \cdot \beta_k + W \cdot \theta_k) \)，而非直接来自 \( \beta \) 与 \( \theta \)<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> |
| 估计 | 通过集中对数似然进行极大似然估计；大面板采用GMM<sup>[4](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)</sup>；亦有使用贝叶斯MCMC<sup>[5](https://spatial-econometrics.com/html/sbook.pdf)</sup> |
| 名称来源 | J. 杜宾，《时间序列模型的拟合》，1960年<sup>[6](https://doi.org/10.2307/1401322)</sup> |
| 常用软件 | R：spatialreg中的 `lagsarlm(..., Durbin=TRUE)`；MATLAB与PanelBox实现<sup>[7](https://r-spatial.org/book/17-Econometrics.html)</sup> |

## 工作原理

该模型将 \( y \) 对三个块进行回归：空间滞后的结果变量 \( W \cdot y \)，即邻近位置结果变量的加权平均，系数为 \( \rho \)；本单位协变量 \( X \)，系数为 \( \beta \)；以及邻居协变量 \( W \cdot X \)，系数为 \( \theta \)。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> 空间滞后变量是邻近位置观测值的加权平均，因此 \( W \cdot y \) 捕捉每个结果变量对附近结果变量的依赖，而 \( W \cdot X \) 捕捉邻居特征的影响。<sup>[8](https://www.ub.edu/sea2009.com/Papers/121.pdf)</sup>

求解 \( y \) 得到简化式 \( y = (I_N - \rho \cdot W)^{-1}(X \cdot \beta + W \cdot X \cdot \theta + \varepsilon) \)，空间乘子展开为幂级数 \( (I_N - \rho \cdot W)^{-1} = I_N + \rho \cdot W + \rho^{2} \cdot W^{2} + \cdots \)，因此一个单位协变量的变化会以递减的力度传播至更高阶邻居。<sup>[2](https://arxiv.org/pdf/2402.09895.pdf)</sup> 协变量 \( k \) 的边际效应为 \( N \times N \) 矩阵 \( M_k = (I_N - \rho \cdot W)^{-1}(\beta_k \cdot I_N + \theta_k \cdot W) \)；对角元素的平均值为直接效应，非对角元素列和的平均值为间接（溢出）效应。<sup>[9](https://www.cambridge.org/core/journals/political-analysis/article/parameterizing-spatial-weight-matrices-in-spatial-econometric-models/DE6D09432DB0803170978017BBBEC1BB)</sup> 原始系数并非效应：在SDM中，\( \beta \) 不是直接效应，\( \theta \) 也不是间接效应，因为乘子会通过邻居将二者反馈回来。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> 在 \( X \) 变化的乘子展开中，一阶路径项 \( W \) 的系数为 \( \rho \cdot \beta + \theta \)，而对邻近单位的完整影响由 \( (I - \rho \cdot W)^{-1}(\beta \cdot I + \theta \cdot W) \) 的相应元素给出；在经典空间滞后模型中，简化式的结构确保邻居乘子效应随距离平滑衰减，但在线性SLX和空间杜宾模型中，这一点不再有保证。<sup>[1](https://link.springer.com/article/10.1007/s12076-026-00436-3)</sup>

## 估计方法

在含空间滞后因变量的模型中，OLS对 \( \rho \) 的估计是有偏的，因为 \( W \cdot y \) 是同时决定的，因此估计依赖似然、矩或贝叶斯方法。<sup>[2](https://arxiv.org/pdf/2402.09895.pdf)</sup> 在极大似然中，主要计算负担是对数行列式 \( \ln|I_N - \rho \cdot W| \)，可通过 \( W \) 的特征值 \( \omega_i \) 高效计算为 \( \ln|I - \rho \cdot W| = \sum_{i=1}^{N} \ln(1 - \rho \cdot \omega_i) \)。<sup>[4](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)</sup> 对于含固定效应的面板数据，关于 \( \rho \) 的集中对数似然为 \( \ell_c(\rho) = -(N \cdot T/2)\ln\hat{\sigma}^2(\rho) + T\ln|I_N - \rho \cdot W| \)，其中 \( \hat{\sigma}^2(\rho) \) 来自组内变换残差对变换回归量及其空间滞后项的OLS回归。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> 对于中小型面板（\( N < 1000 \)），推荐使用ML；对于更大的面板，GMM通过用高阶空间滞后 \( W^{2} \cdot X, W^{3} \cdot X, \ldots \) 作为内生变量 \( W \cdot y \) 的工具变量，避免了对数行列式的计算。<sup>[4](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)</sup> SDM的一个显著特征是，依赖 \( W \cdot X \) 作为 \( W \cdot y \) 的排除工具变量的基本工具集是不够的，因为 \( W \cdot X \) 已经作为回归量进入模型；增广IV或GMM程序可以改用高阶空间滞后或外部工具变量，而采用组内型数据变换的似然估计则是另一种选择。<sup>[8](https://www.ub.edu/sea2009.com/Papers/121.pdf)</sup> 通过MCMC进行贝叶斯估计在截面数据中计算量较轻。<sup>[5](https://spatial-econometrics.com/html/sbook.pdf)</sup> QML对非正态误差具有稳健性。<sup>[4](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)</sup>

随后，设定检验决定SDM能否简化：似然比约束检验 \( \theta = 0 \)（简化为SAR）和联合约束（简化为OLS），而使用无约束SDM估计对非线性公因子约束（该约束意味着不存在真正的空间溢出）\( \theta = -\rho \cdot \beta \) 进行沃尔德检验，则检验能否简化为SEM。<sup>[10](https://www.cambridge.org/core/journals/political-analysis/article/wald-test-of-common-factors-in-spatial-model-specification-search-strategies/20B76FF1F7D5D3167B370AECAF9ADD4D)</sup> 如果无约束估计满足 \( \theta = -\rho \cdot \beta \)，则数据中除误差过程外不存在可辨识的实质溢出，SEM即已足够。<sup>[10](https://www.cambridge.org/core/journals/political-analysis/article/wald-test-of-common-factors-in-spatial-model-specification-search-strategies/20B76FF1F7D5D3167B370AECAF9ADD4D)</sup> 对OLS残差的莫兰指数以及LM和稳健LM检验可指导初始选择；当两个稳健检验均显著时，表明应采用SDM或一般嵌套设定。<sup>[4](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)</sup> R包spdep实现了针对SDM和SDEM设定的拉奥得分检验与调整拉奥得分检验，选项包括SDM_RSlag、SDM_RSWX和联合检验。<sup>[11](https://r-spatial.github.io/spdep/reference/SD.RStests.html)</sup>

## 起源

空间杜宾模型得名于J. 杜宾1960年发表于《国际统计学会评论》的论文《时间序列模型的拟合》，这是一项时间序列模型拟合工作，空间设定借用了其标签。<sup>[6](https://doi.org/10.2307/1401322)</sup> 已发表的记述对空间标签的来源说法不一：一派将空间杜宾模型归功于安塞林（1988），认为它是对杜宾时间序列构造的修改，<sup>[8](https://www.ub.edu/sea2009.com/Papers/121.pdf)</sup> 而另一派指出，约束版本——空间自回归误差模型的一种替代表述——最初是在公因子假设的语境下被贴上空间杜宾标签的（伯里奇，1981；安塞林，1988）。<sup>[1](https://link.springer.com/article/10.1007/s12076-026-00436-3)</sup> 当今大多数应用中所使用的无约束版本，在詹姆斯·勒萨热与罗伯特·凯利·佩斯2009年的教材《空间计量经济学导论》中得到论述之后获得了广泛采用。<sup>[12](https://doi.org/10.1201/9781420064254)</sup> 勒萨热与佩斯（2009）还确立了如今已成为标准做法的将偏效应矩阵平均为直接与间接影响的处理方式。<sup>[13](https://ora.ox.ac.uk/objects/uuid:1b1e7be6-7084-4b06-9773-51c0b02cddf6/files/s6m311p441)</sup> 设定搜索中所使用的空间依赖稳健LM诊断检验，由卢克·安塞林及其同事于1996年在《区域科学与城市经济学》上提出。<sup>[4](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)</sup> 该模型已从截面数据扩展到含固定效应的面板数据，包括允许序列相关和异方差误差的情形。<sup>[8](https://www.ub.edu/sea2009.com/Papers/121.pdf)</sup>

## 变体

SDM位于一个嵌套设定家族之中。令 \( \theta = 0 \) 得到具有全局溢出的SAR模型；令 \( \rho = 0 \) 得到具有局部溢出的SLX模型；施加 \( \theta = -\rho \cdot \beta \) 得到SEM。<sup>[10](https://www.cambridge.org/core/journals/political-analysis/article/wald-test-of-common-factors-in-spatial-model-specification-search-strategies/20B76FF1F7D5D3167B370AECAF9ADD4D)</sup> 在SDM中加入空间自回归误差，得到一般嵌套空间（GNS）模型，它将SAR、SEM和SLX嵌套在一起。<sup>[2](https://arxiv.org/pdf/2402.09895.pdf)</sup> 空间杜宾误差模型（SDEM）将空间滞后协变量与空间误差过程配对。勒萨热与佩斯（2009）认为模型选择可以简化为两种设定：适用于全局溢出情形的SDM和适用于局部溢出的SDEM，勒萨热（2014）利用MATLAB软件将这一比较扩展到静态面板模型。<sup>[14](https://ideas.repec.org/a/tou/journl/v40y2014p11-24.html)</sup> 勒萨热与佩斯（2009）建议从SDM开始，向下检验至更简单的模型。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup>

近期工作扩展了该框架。2025年《经济学快报》的一篇论文估计了一个空间面板杜宾模型，其中 \( W \cdot y \) 与 \( X \) 的空间滞后均使用不同权重矩阵的凸组合，且可能具有不同的组合权重，通过自适应MCMC估计并以后验贝叶斯信息准则进行模型选择。<sup>[15](https://ideas.repec.org/a/eee/ecolet/v256y2025ics0165176525004240.html)</sup> R包SDPDmod（2025）提供含固定效应的空间动态面板模型的准极大似然估计、通过贝叶斯对数边际后验概率进行模型选择，以及多种权重矩阵类型的构造。<sup>[16](https://link.springer.com/article/10.1007/s10614-025-11056-2)</sup> 《计量经济学杂志》一篇关于高维空间动态面板的论文去除了所有特征值和特征向量必须为实数的要求，使该方法适用于有向网络的时空建模。<sup>[17](https://www.sciencedirect.com/science/article/abs/pii/S0304407623003214?dgcid=rss_sd_all)</sup>

## 应用

已记录的应用领域包括：房价，其中邻居房屋价值（\( W \cdot y \)）与邻居便利设施（\( W \cdot X \)）均有影响；区域增长，其中邻居GDP与邻居基础设施影响本地增长；以及教育，其中同伴成绩通过空间滞后进入。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup> 在R的spatialreg包中，SDM用 `lagsarlm(..., Durbin=TRUE)` 拟合，SDEM用 `errorsarlm(..., Durbin=TRUE)` 拟合；对数行列式项默认使用 `method="eigen"`，适用于中等规模数据集。<sup>[7](https://r-spatial.org/book/17-Econometrics.html)</sup> MATLAB工具箱<sup>[5](https://spatial-econometrics.com/html/sbook.pdf)</sup>与PanelBox Python库也实现了该模型及其面板变体。<sup>[3](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)</sup>

## 局限与替代方案

批评者认为，SDM与SAC模型在实践中只能被弱识别，因为在外生性和对 \( W \) 的完全知识的假设下，空间滞后协变量充当了遗漏变量的工具变量；吉本斯与奥弗曼（2012）以及平克塞与斯莱德（2010）提出了这一论点，并倾向于从SLX模型开始。<sup>[13](https://ora.ox.ac.uk/objects/uuid:1b1e7be6-7084-4b06-9773-51c0b02cddf6/files/s6m311p441)</sup> 遗漏变量会使 \( \beta \) 产生偏误：当遗漏变量具有空间聚集性并与一个已包含的回归量相关时，真实的数据生成过程类似于SDM，\( \rho \) 与 \( \theta \) 保持一致性，但 \( \beta \) 是渐近有偏的，\( E(\hat{\beta}) = \beta + \gamma \)，因此公因子约束因内生性偏误而失效。<sup>[10](https://www.cambridge.org/core/journals/political-analysis/article/wald-test-of-common-factors-in-spatial-model-specification-search-strategies/20B76FF1F7D5D3167B370AECAF9ADD4D)</sup> 结果还依赖于所假设的 \( W \)：相对稠密的权重矩阵可能压低模型估计值，表明更稀疏的权重更为可取。<sup>[7](https://r-spatial.org/book/17-Econometrics.html)</sup> 用变量特定的距离衰减参数对 \( W \) 进行参数化，放松了所有协变量共享同一空间范围的限制，但这些衰减参数只有在 \( \rho \) 与 \( \theta_k \) 有界远离零时才可识别。<sup>[9](https://www.cambridge.org/core/journals/political-analysis/article/parameterizing-spatial-weight-matrices-in-spatial-econometric-models/DE6D09432DB0803170978017BBBEC1BB)</sup> 针对这些担忧，2022年一项评估影响而非回归系数偏误的蒙特卡洛研究发现，SDM、SDEM和SLX设定即使在设定错误的情况下也能给出直接影响的准确估计，而SAR和SEM设定则表现出严重缺陷。<sup>[13](https://ora.ox.ac.uk/objects/uuid:1b1e7be6-7084-4b06-9773-51c0b02cddf6/files/s6m311p441)</sup>

## References

1. [Spatial Durbin meets Tobler (Letters in Spatial and Resource Sciences)](https://link.springer.com/article/10.1007/s12076-026-00436-3)
2. [Spatial Data Analysis (handbook chapter, 2024)](https://arxiv.org/pdf/2402.09895.pdf)
3. [Spatial Durbin Model (SDM), PanelBox user guide](https://panelbox.readthedocs.io/en/latest/user-guide/spatial/spatial-durbin/)
4. [Spatial Econometrics Theory, Modeling Geographic Dependence (PanelBox)](https://panelbox.readthedocs.io/en/latest/theory/spatial-theory/)
5. [The Theory and Practice of Spatial Econometrics (LeSage)](https://spatial-econometrics.com/html/sbook.pdf)
6. [J. Durbin (1960). The Fitting of Time-Series Models. Revue de l Institut International de Statistique / Review of the International Statistical Institute.](https://doi.org/10.2307/1401322)
7. [Spatial Econometrics Models, Spatial Data Science (Bivand et al.)](https://r-spatial.org/book/17-Econometrics.html)
8. [Modeling Spatial Externalities: A Panel Data Approach](https://www.ub.edu/sea2009.com/Papers/121.pdf)
9. [Parameterizing Spatial Weight Matrices in Spatial Econometric Models (Political Analysis)](https://www.cambridge.org/core/journals/political-analysis/article/parameterizing-spatial-weight-matrices-in-spatial-econometric-models/DE6D09432DB0803170978017BBBEC1BB)
10. [The Wald Test of Common Factors in Spatial Model Specification Search Strategies (Political Analysis)](https://www.cambridge.org/core/journals/political-analysis/article/wald-test-of-common-factors-in-spatial-model-specification-search-strategies/20B76FF1F7D5D3167B370AECAF9ADD4D)
11. [Rao's score and adjusted Rao's score tests for spatial Durbin and spatial Durbin error models, SD.RStests • spdep](https://r-spatial.github.io/spdep/reference/SD.RStests.html)
12. [James LeSage, Robert Kelley Pace (2009). Introduction to Spatial Econometrics. .](https://doi.org/10.1201/9781420064254)
13. [Spatial Regression Models: A Systematic Comparison of Different Model Specifications using Monte Carlo Experiments](https://ora.ox.ac.uk/objects/uuid:1b1e7be6-7084-4b06-9773-51c0b02cddf6/files/s6m311p441)
14. [Software For Bayesian Spatial Model Comparison (LeSage)](https://ideas.repec.org/a/tou/journl/v40y2014p11-24.html)
15. [Bayesian analysis of spatial panel Durbin model with convex combinations of different spatial weight matrices (Economics Letters, 2025)](https://ideas.repec.org/a/eee/ecolet/v256y2025ics0165176525004240.html)
16. [SDPDmod: An R Package for Spatial Dynamic Panel Data Modeling (Computational Economics, 2025)](https://link.springer.com/article/10.1007/s10614-025-11056-2)
17. [Estimation and variable selection for high-dimensional spatial dynamic panel data models (Journal of Econometrics)](https://www.sciencedirect.com/science/article/abs/pii/S0304407623003214?dgcid=rss_sd_all)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/spatial-durbin-model

English original: https://www.edgepedia.org/spatial-durbin-model
