pwartest(x, data,
h0=c("fd","fe"), ...)
formula
,pdata.frame
linear.hypothesis
or to pvcovHC
"htest"
."fe"
), then the errors of the model in first differences (FD)
must be serially correlated with $cor("fd"
). Both the fixed
effects (FE) and the first differenced (FD) estimators remain
consistent under either assumption, but relative efficiency changes:
FE is more efficient under "fe"
, FD under "fd"
.
Wooldridge (ibid.) suggests basing a test for either hypothesis on a
pooled regression of FD residuals on their first lag:
$"fe"
). The
null hypothesis of no serial correlation in differenced errors
("fd"
) is tested in a similar way, but based on the
zero-restriction on $"fe"
favours the use of
the first-difference estimator and the contrary, although it is possible
that both be rejected.
pwartest
estimates the fd
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 relevant 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. The
"fe"
version can be used to test for error autocorrelation
regardless of whether the maintained specification has fixed or random
effects (see Drukker, 2003).pdwtest
, pbgtest
, pwartest