Last chance! 50% off unlimited learning
Sale ends in
pbsytest(x,...)
## S3 method for class 'panelmodel':
pbsytest(x, test = c("ar","re","j"), ...)
## S3 method for class 'formula':
pbsytest(x, data, ..., test = c("ar","re","j"))
"formula"
or of class
panelmodel
,data.frame
,ar
), random effects
(re
) or joint test for either of them (j
)."htest"
.plmtest
for individual and/or time random effects tests based on a correctly specified model; pbltest
,
pbgtest
and pdwtest
for serial correlation tests in random effects models.## Example in Bera et al.
data(Grunfeld, package = "plm")
## Bera et al. use a subset of the original Grunfeld data,
## so results are slightly different here
## default is AR testing
pbsytest(inv ~ value + capital, data = Grunfeld, index = c("firm","year"))
pbsytest(inv ~ value + capital, data = Grunfeld, test="re", index = c("firm","year"))
pbsytest(inv ~ value + capital, data = Grunfeld, test="j", index = c("firm","year"))
Run the code above in your browser using DataLab