XTCSDDIAG: Stata module to compute residual diagnostics for heterogeneous panels with cross-sectional dependence: serial correlation, heteroskedasticity, normality and parameter stability
Yusuf Yusuf
Statistical Software Components from Boston College Department of Economics
Abstract:
The residual tests in common use for panels (for example xtserial, xttest3, xtqptest) are built for fixed-effects models with homogeneous slopes and assume that the units are independent. With common factors in the errors, as in most macro panels, they over-reject, and they cannot be applied to the unit regressions of mean-group or common correlated effects (CCE) estimators. xtcsddiag fits the model unit by unit, tests the residuals of each unit, and combines the unit results.
Language: Stata
Requires: Stata version 14
Keywords: panel data; residuals; common factors (search for similar items in EconPapers)
Date: 2026-11-10
Note: This module should be installed from within Stata by typing "ssc install xtcsddiag". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/x/xtcsddiag.ado
http://fmwww.bc.edu/repec/bocode/x/xtcsddiag.sthlp
http://fmwww.bc.edu/repec/bocode/x/xtcdmax.ado
http://fmwww.bc.edu/repec/bocode/x/xtcdmax.sthlp
http://fmwww.bc.edu/repec/bocode/x/xtcollin.ado
http://fmwww.bc.edu/repec/bocode/x/xtcollin.sthlp
http://fmwww.bc.edu/repec/bocode/x/xtcsddiag_apec.dta
http://fmwww.bc.edu/repec/bocode/x/xtcsddiag_example.do
http://fmwww.bc.edu/repec/bocode/_/_xtcdmax_display.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcdmax_load.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcdmax_mata.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcollin_display.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcollin_load.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcollin_mata.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcsddiag_display.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcsddiag_load.ado
http://fmwww.bc.edu/repec/bocode/_/_xtcsddiag_mata.ado
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s460016
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().