# 面板协整

面板协整方法检验的是：对许多个体在多个时期观测到的变量之间是否具有长期均衡关系，并估计这些关系的系数。这类方法把协整检验的时间序列逻辑与面板数据的截面信息结合起来，因此单个面板就能支撑起单条短时间序列无法支撑的推断。一项完整的分析通常产出两项结果：关于是否存在协整的检验判定，以及由面板全修正最小二乘（FMOLS）或动态最小二乘（DOLS）等估计量给出的长期向量估计。<sup>[1](https://web.williams.edu/Economics/pedroni/WP-96-20.pdf)</sup><sup> • </sup><sup>[2](https://panelbox.readthedocs.io/en/latest/diagnostics/cointegration/)</sup>

| 关键事实 | 详情 |
|---|---|
| 分析产出什么 | 一个检验判定（协整有或没有），加上面板 FMOLS、DOLS 或两步估计量给出的长期系数估计<sup>[1](https://web.williams.edu/Economics/pedroni/WP-96-20.pdf)</sup> |
| 典型的原假设 | 面板中不存在协整（或不存在误差修正）；备择假设因检验和统计量而异，且拒绝原假设并不能识别有多少个体存在协整<sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> |
| Pedroni 统计量 | 七个基于残差的统计量；面板方差统计量在正态分布的右尾拒绝，其余六个在左尾拒绝<sup>[4](https://doi.org/10.1111/1468-0084.61.s1.14)</sup> |
| Westerlund 统计量 | 四个基于误差修正的统计量，\( G_{\tau} \)、\( G_{\alpha} \)、\( P_{\tau} \)、\( P_{\alpha} \)<sup>[5](https://doi.org/10.1111/j.1468-0084.2007.00477.x)</sup> |
| 小样本警告 | 当 \( T \) 较小时（例如 \( T = 10 \)），即便 \( N = 300 \)，基于残差的检验也表现出严重的水平扭曲<sup>[6](https://www.sciencedirect.com/science/article/pii/S0304407698000232)</sup> |
| 估计量证据 | 在一项大型模拟研究中，DOLS 优于所有其他面板协整估计量，而 FMOLS 与两步估计量表现相近<sup>[7](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)</sup> |
| 软件 | Stata 内置的 xtcointtest 命令，以及用户编写的 xtpedroni 命令；R 包 Westerlund 和 pvars；Python 包 PanelBox<sup>[2](https://panelbox.readthedocs.io/en/latest/diagnostics/cointegration/)</sup><sup> • </sup><sup>[8](https://rdrr.io/cran/Westerlund/f/inst/doc/my-vignette.Rmd)</sup> |

## 工作原理

要解决的问题是伪回归：互不相关的单整序列在单条时间序列中可能显得关系很强。经典的补救办法是 Engle-Granger 两步法逻辑，而面板检验恰恰把这一逻辑推广到异质性面板，允许个体特定的固定效应、时间趋势、协整向量和动态结构。<sup>[4](https://doi.org/10.1111/1468-0084.61.s1.14)</sup>

各检验的原假设与备择假设不尽相同，这决定了结果的解读方式。对于 Kao 和 Pedroni 的基于残差的检验，原假设是任何个体 \( i = 1, \dots, N \) 都不存在组内协整；备择假设在各统计量之间并不统一，因为 Kao 施加的是共同协整向量，而 Pedroni 则在不同同质性假设下区分了合并面板统计量与组均值统计量，所以拒绝原假设并不能识别有多少个体存在协整。<sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> Larsson、Lyhagen 和 Löthgren 的秩检验则不同，其原假设为共同协整秩 \( r \)，备择假设为更高的秩。<sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> 实际后果是：整个面板——尤其是大 \( T \) 面板——可能在只有一小部分关系真正协整时被建模为协整，反之亦然。<sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup>

Pedroni 的框架区分两类统计量：面板统计量，相当于针对同质备择假设的单位根统计量；以及组均值统计量，类似于针对异质备择假设的面板单位根检验。<sup>[7](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)</sup> Westerlund 基于误差修正的方法重新表述了问题：在原假设下，对所有 \( i \) 都有 \( \alpha_{i} = 0 \)，即没有任何个体向长期均衡修正；组均值统计量检验是否至少有一个个体满足 \( \alpha_{i} < 0 \)，而面板统计量则合并截面并假定调整速度同质。<sup>[5](https://doi.org/10.1111/j.1468-0084.2007.00477.x)</sup><sup> • </sup><sup>[8](https://rdrr.io/cran/Westerlund/f/inst/doc/my-vignette.Rmd)</sup> 由于它直接检验调整过程而非静态回归的残差，这一设计被描述为比基于残差的方法更有功效。<sup>[2](https://panelbox.readthedocs.io/en/latest/diagnostics/cointegration/)</sup>

## 操作步骤

实践者通常分两个阶段进行。

**第一阶段，检验。** 基于残差的检验先为每个个体估计一个静态长期关系，然后检验残差是否存在单位根。Pedroni 的程序产出七个统计量，分为组内维度（面板）和组均值两类；含多个回归元情形的临界值列于他 1999 年发表于《牛津公报》的论文中，面板方差统计量在标准正态的右尾拒绝，其余六个在左尾拒绝。<sup>[4](https://doi.org/10.1111/1468-0084.61.s1.14)</sup> Kao 的程序把 Dickey-Fuller 和增广 Dickey-Fuller 检验推广到面板残差，软件文档将他的检验描述为具有同质协整向量的单一 ADF 型统计量。<sup>[9](https://doi.org/10.1016/s0304-4076%2898%2900023-2)</sup><sup> • </sup><sup>[2](https://panelbox.readthedocs.io/en/latest/diagnostics/cointegration/)</sup> 另一类方法合并逐个体检验的 p 值：Maddala 和 Wu 提出了面板数据的 Fisher 检验，并明确建议将其用于检验面板协整，首选基于自助法的临界值；这类合并检验在统计量超过自由度为 \( 2N \) 的卡方临界值时拒绝，且能容纳非平衡面板和异质性序列相关。<sup>[10](https://doi.org/10.1111/1468-0084.0610s1631)</sup><sup> • </sup><sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> 对于系统层面的问题，Larsson、Lyhagen 和 Löthgren 改造了 Johansen 基于似然的迹检验，采用 Im-Pesaran-Shin 方法风格的标准化 \( \overline{LR} \) 统计量。<sup>[11](https://doi.org/10.1111/1368-423x.00059)</sup><sup> • </sup><sup>[12](https://www.econstor.eu/bitstream/10419/19627/1/200542dkp.pdf)</sup> 以协整为原假设、颠倒通常框架的检验，是 McCoskey 和 Kao 的 LM 型检验。<sup>[13](https://doi.org/10.1080/07474939808800403)</sup> Westerlund 的四个 ECM 统计量附有推导出的极限分布和临界值，软件实现还在原假设下加入递归筛拔自助法以处理截面相依。<sup>[5](https://doi.org/10.1111/j.1468-0084.2007.00477.x)</sup><sup> • </sup><sup>[8](https://rdrr.io/cran/Westerlund/f/inst/doc/my-vignette.Rmd)</sup>

**第二阶段，估计。** 一旦确立协整，就用面板 FMOLS 估计长期向量；该方法对普通最小二乘加以修正，在存在特质动态和固定效应时给出渐近无偏、不含干扰参数的标准分布；有两个 t 统计量可用，一个是合并的公共 FMOLS t 统计量，一个是组均值 FMOLS t 统计量，后者在所述假设下服从标准正态。<sup>[1](https://web.williams.edu/Economics/pedroni/WP-96-20.pdf)</sup> DOLS 是另一种选择，<sup>[7](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)</sup> 还有一种参数方法分两步估计协整 VAR(\( p \))，先估计个体特定参数，再用合并最小二乘估计长期参数。<sup>[14](https://www.tandfonline.com/doi/abs/10.1081/ETC-200067895)</sup>

## 起源

核心论文集中在 1990 年代后期。Pedroni 1999 年发表于《牛津公报》的文章报告了含多个回归元、原假设为无协整的七个基于残差的面板协整统计量的临界值。<sup>[4](https://doi.org/10.1111/1468-0084.61.s1.14)</sup> Kao 1999 年发表于《计量经济学杂志》的论文发展了把 Dickey-Fuller 和增广 Dickey-Fuller 检验推广到面板数据的基于残差的检验。<sup>[9](https://doi.org/10.1016/s0304-4076%2898%2900023-2)</sup> McCoskey 和 Kao 1998 年发表于《计量经济学评论》的文章提出了以协整为原假设的 LM 型检验。<sup>[13](https://doi.org/10.1080/07474939808800403)</sup> Maddala 和 Wu 1999 年的论文提出了 Fisher 型合并检验并建议将其应用于面板协整。<sup>[10](https://doi.org/10.1111/1468-0084.0610s1631)</sup> Larsson、Lyhagen 和 Löthgren 2001 年发表于《计量经济学杂志》的论文提出了基于似然的面板秩检验。<sup>[11](https://doi.org/10.1111/1368-423x.00059)</sup> Westerlund 2007 年发表于《牛津公报》的论文提出了基于误差修正的检验。<sup>[5](https://doi.org/10.1111/j.1468-0084.2007.00477.x)</sup>

## 变体

文献习惯上按代际划分。第一代检验假定截面独立；第二代检验允许各种形式和程度的跨个体相依。<sup>[7](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)</sup> 补救办法包括按共同相关效应方法的精神构建在截面平均值上的检验，一旦控制了截面相依，就能估计长期平均参数。<sup>[15](https://onlinelibrary.wiley.com/doi/10.1111/jtsa.12234)</sup> 自助法程序在相依下改善水平表现：Westerlund 的实现使用原假设 \( \alpha_{i} = 0 \) 下的递归筛拔自助法，p 值合并检验也有自助法变体被提出。<sup>[8](https://rdrr.io/cran/Westerlund/f/inst/doc/my-vignette.Rmd)</sup><sup> • </sup><sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> 其他扩展允许异方差和序列相关误差、个体特定时间趋势、截面相依，以及截距和斜率中未知的结构突变。<sup>[16](https://onlinelibrary.wiley.com/doi/10.1111/j.1468-0084.2008.00513.x)</sup> 多因子误差结构提供了针对单位根、斜率同质性、协整和因子个数的检验。<sup>[17](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-063016-104338)</sup>

## 应用

面板协整分析用于对许多个体（国家、地区、企业）在中等时间跨度上观测的情形，这正是应用宏观计量经济学的场景。在一项实证应用中，一旦考虑了无效的共同因子约束，国际医疗支出与 GDP 就被发现存在协整。<sup>[18](https://ideas.repec.org/a/bla/obuest/v69y2007i6p709-748.html)</sup> 软件支持已很成熟：Stata 内置的 xtcointtest 命令实现了 Kao、Pedroni 和 Westerlund 检验，用户编写的 xtpedroni 命令也可用；R 包 Westerlund 计算 \( G_{\tau} \)、\( G_{\alpha} \)、\( P_{\tau} \) 和 \( P_{\alpha} \)，带渐近标准化和自助法；PanelBox 在 Python 中提供 Pedroni、Kao 和 Westerlund 检验。<sup>[2](https://panelbox.readthedocs.io/en/latest/diagnostics/cointegration/)</sup><sup> • </sup><sup>[8](https://rdrr.io/cran/Westerlund/f/inst/doc/my-vignette.Rmd)</sup>

## 局限与替代方案

**小样本扭曲水平。** Kao 的所有基于残差的检验在 \( T \) 较小时（例如 \( T = 10 \)）即便 \( N = 300 \) 也表现出严重的水平扭曲。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0304407698000232)</sup> 要使 GLS 型检验具有合理的水平性质，\( T \) 必须显著大于 \( N \)。<sup>[7](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)</sup> 功效比较提供了实用指引：在时期数很少的同质面板中，Kao 的检验功效往往高于 Pedroni 的检验；而在大 \( T \) 下 Pedroni 的表现最佳，两者都优于 Larsson 秩检验；p 值合并检验的水平接近名义水平，功效在 \( T = 50 \) 到 \( T = 100 \) 之间迅速上升。<sup>[12](https://www.econstor.eu/bitstream/10419/19627/1/200542dkp.pdf)</sup><sup> • </sup><sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> 相对于流行的基于残差的检验，Westerlund 的 ECM 检验水平扭曲小、功效高；随着截面维度增大，组均值 FMOLS 估计量即便对短时间序列也表现良好。<sup>[18](https://ideas.repec.org/a/bla/obuest/v69y2007i6p709-748.html)</sup><sup> • </sup><sup>[1](https://web.williams.edu/Economics/pedroni/WP-96-20.pdf)</sup>

**解读陷阱。** 由于 Kao 和 Pedroni 检验实际上假定全有或全无的协整，拒绝原假设可能掩盖只有一部分关系协整的面板。<sup>[19](https://www.sciencedirect.com/science/article/abs/pii/S0165176503000661)</sup> 第一代检验所依据的截面不相关假设，对许多宏观经济面板而言很可能过强，一旦违背就会得出错误结论。<sup>[3](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)</sup> 某些估计方法施加的共同因子约束可能无效，医疗支出—GDP 的应用即为一例。<sup>[18](https://ideas.repec.org/a/bla/obuest/v69y2007i6p709-748.html)</sup>

**估计量的选择。** 模拟证据对最佳长期估计量意见不一：一项研究发现基于 VAR 的两步估计量优于 FMOLS 等半参数替代方法，尤其在时期数较少时；而 Hlouskova 和 Wagner 的大规模研究发现 DOLS 优于所有其他估计量，FMOLS 与两步估计量表现相近。<sup>[14](https://www.tandfonline.com/doi/abs/10.1081/ETC-200067895)</sup><sup> • </sup><sup>[7](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)</sup>

## References

1. [Fully Modified OLS for Heterogeneous Cointegrated Panels (Pedroni working paper)](https://web.williams.edu/Economics/pedroni/WP-96-20.pdf)
2. [Cointegration Tests (PanelBox documentation)](https://panelbox.readthedocs.io/en/latest/diagnostics/cointegration/)
3. [A meta analytic approach to testing for panel cointegration](https://www.econstor.eu/bitstream/10419/24989/1/534716717.PDF)
4. [Peter Pedroni (1999). Critical Values for Cointegration Tests in Heterogeneous Panels with Multiple Regressors. Oxford Bulletin of Economics and Statistics.](https://doi.org/10.1111/1468-0084.61.s1.14)
5. [Joakim Westerlund (2007). Testing for Error Correction in Panel Data*. Oxford Bulletin of Economics and Statistics.](https://doi.org/10.1111/j.1468-0084.2007.00477.x)
6. [Spurious regression and residual-based tests for cointegration in panel data (Kao, Journal of Econometrics)](https://www.sciencedirect.com/science/article/pii/S0304407698000232)
7. [Panel Methods to Test for Unit Roots and Cointegration (Pesaran survey, Cambridge)](https://files.econ.cam.ac.uk/people-files/mhp1/fp2007/panelUnitCoin_final.pdf)
8. [Westerlund R package vignette](https://rdrr.io/cran/Westerlund/f/inst/doc/my-vignette.Rmd)
9. [Spurious regression and residual-based tests for cointegration in panel data (Journal of Econometrics, 1999)](https://doi.org/10.1016/s0304-4076%2898%2900023-2)
10. [G. S. Maddala, Shaowen Wu (1999). A Comparative Study of Unit Root Tests with Panel Data and a New Simple Test. Oxford Bulletin of Economics and Statistics.](https://doi.org/10.1111/1468-0084.0610s1631)
11. [Rolf Larsson, Johan Lyhagen, Mickael Löthgren (2001). Likelihood‐based cointegration tests in heterogeneous panels. Econometrics Journal.](https://doi.org/10.1111/1368-423x.00059)
12. [Unit roots and cointegration in panels (survey chapter, EconStor)](https://www.econstor.eu/bitstream/10419/19627/1/200542dkp.pdf)
13. [Suzanne McCoskey, Chihwa Kao (1998). A residual-based test of the null of cointegration in panel data. Econometric Reviews.](https://doi.org/10.1080/07474939808800403)
14. [A Parametric approach to the Estimation of Cointegration Vectors in Panel Data (Econometric Reviews)](https://www.tandfonline.com/doi/abs/10.1081/ETC-200067895)
15. [Testing for Panel Cointegration Using Common Correlated Effects Estimators (Journal of Time Series Analysis)](https://onlinelibrary.wiley.com/doi/10.1111/jtsa.12234)
16. [A Simple Test for Cointegration in Dependent Panels with Structural Breaks (Oxford Bulletin of Economics and Statistics)](https://onlinelibrary.wiley.com/doi/10.1111/j.1468-0084.2008.00513.x)
17. [Econometric Analysis of Panel Data Models with Multifactor Error Structures (Annual Review of Economics)](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-063016-104338)
18. [Testing for Error Correction in Panel Data (Westerlund, Oxford Bulletin of Economics and Statistics, 2007)](https://ideas.repec.org/a/bla/obuest/v69y2007i6p709-748.html)
19. [On the power of panel cointegration tests: a Monte Carlo comparison (Economics Letters)](https://www.sciencedirect.com/science/article/abs/pii/S0165176503000661)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/panel-cointegration

English original: https://www.edgepedia.org/panel-cointegration
