pbnftest {plm} | R Documentation |
Modified BNF–Durbin–Watson Test and Baltagi–Wu's LBI Test for Panel Models
Description
Tests for AR(1) disturbances in panel models.
Usage
pbnftest(x, ...)
## S3 method for class 'panelmodel'
pbnftest(x, test = c("bnf", "lbi"), ...)
## S3 method for class 'formula'
pbnftest(
x,
data,
test = c("bnf", "lbi"),
model = c("pooling", "within", "random"),
...
)
Arguments
x |
an object of class |
... |
only relevant for formula interface: further arguments
to specify the model to test (arguments passed on to plm()),
e.g., |
test |
a character indicating the test to be performed, either
|
data |
a |
model |
a character indicating on which type of model the test
shall be performed ( |
Details
The default, test = "bnf"
, gives the (modified) BNF statistic,
the generalised Durbin-Watson statistic for panels. For balanced
and consecutive panels, the reference is
Bhargava/Franzini/Narendranathan (1982). The modified BNF is given
for unbalanced and/or non-consecutive panels (d1 in formula 16 of
Baltagi and Wu (1999)).
test = "lbi"
yields Baltagi–Wu's LBI statistic
(Baltagi and Wu 1999), the locally best invariant test which
is based on the modified BNF statistic.
No specific variants of these tests are available for random effect models. As the within estimator is consistent also under the random effects assumptions, the test for random effect models is performed by taking the within residuals.
No p-values are given for the statistics as their distribution is quite difficult. Bhargava et al. (1982) supply tabulated bounds for p = 0.05 for the balanced case and consecutive case.
For large N, (Bhargava et al. 1982) suggest it is sufficient to check whether the BNF statistic is < 2 to test against positive serial correlation.
Value
An object of class "htest"
.
Author(s)
Kevin Tappe
References
Baltagi BH (2013). Econometric Analysis of Panel Data, 5th edition. John Wiley and Sons ltd.
Baltagi BH, Wu PX (1999). “Unequally Spaced Panel Data Regressions with AR(1) Disturbances.” Econometric Theory, 15(6), 814–823. ISSN 02664666, 14694360.
Bhargava A, Franzini L, Narendranathan W (1982). “Serial Correlation and the Fixed Effects Model.” The Review of Economic Studies, 49(4), 533–549. ISSN 00346527, 1467937X.
See Also
pdwtest()
for the original Durbin–Watson test using
(quasi-)demeaned residuals of the panel model without taking
the panel structure into account. pbltest()
, pbsytest()
,
pwartest()
and pwfdtest()
for other serial correlation
tests for panel models.
Examples
data("Grunfeld", package = "plm")
# formula interface, replicate Baltagi/Wu (1999), table 1, test case A:
data_A <- Grunfeld[!Grunfeld[["year"]] %in% c("1943", "1944"), ]
pbnftest(inv ~ value + capital, data = data_A, model = "within")
pbnftest(inv ~ value + capital, data = data_A, test = "lbi", model = "within")
# replicate Baltagi (2013), p. 101, table 5.1:
re <- plm(inv ~ value + capital, data = Grunfeld, model = "random")
pbnftest(re)
pbnftest(re, test = "lbi")