Perform Pesaran CD test¶
Source: man/performPesaranTest.Rd ยท Help: ?performPesaranTest
Checks for cross-sectional dependence in panel residuals.
Usage¶
Arguments¶
model- an object of class
lm. data- data frame used to fit
model. WhenNULL, the default, the model frame ofmodelis used, soidandtimemust then be variables of the model. The model frame holds the terms of the model rather than its variables (log(x)rather thanx), so a model that transforms a variable needsdata, as does a model with anoffset()term. id- individual identifier column.
time- time column.
Value¶
An object of class htest.
Details¶
The statistic averages pairwise correlation coefficients of the residuals and is standardized to follow a normal distribution under the null of independence.
References¶
Pesaran, M. H. (2004). General diagnostic tests for cross section dependence in panels. Cambridge Working Papers in Economics.