skip to content

Faculty of Economics

CWPE Cover

Jochmans, K. and Verardi, V.

xtserialpm: A portmanteau test for serial correlation in a linear panel model


Abstract: We introduce the command xtserialpm to perform the portmanteau test developed in Jochmans (2019). The procedure tests for serial correlation in the errors of a linear panel model after estimation of the regression coefficients by the within-group estimator. The test is different from the test of Inoue and Solon (2006) that is performed by xtistest (Wursten 2018) in that it allows for heteroskedasticity. In simulations documented below, xtserialpm is found to provide a much more powerful test than xtistest. xtserialpm can deal with unbalanced panel data.

Keywords: xtserialpm, heteroskedasticity, fixed-effect model, portmanteau test, serial correlation, short panel data, unbalanced panelexponential regression, gravity model, panel data, two-way fixed effects

JEL Codes: C33 C87

Author links:


Open Access Link:

Published Version of Paper: xtserialpm: A Portmanteau Test for Serial Correlation in a Linear Panel Model, Jochmans, K. and Verardi, V., Stata Journal (2020)

<< CWPE Home | CWPE List 2019 >>