pwartest(x, data, ...)
formula
,pdata.frame
linear.hypothesis
or to pvcovHC
"htest"
.pwartest
estimates the within
model and retrieves
residuals, then estimates an AR(1) pooling
model on them. The
test statistic is obtained by applying linear.hypothesis()
to the
latter model to test the above restriction on $pvcovHC
with the option
method="arellano"
to control for serial correlation.
Unlike the pbgtest
and pdwtest
, this test does not rely on
T-asymptotics and has therefore good properties in ``short''
panels. Furthermore, it is robust to general heteroskedasticity.pdwtest
, pbgtest